Lines Matching refs:add_mir
1879 void MIRGraph::CombineMultiplyAdd(MIR* mul_mir, MIR* add_mir, bool mul_is_first_addend, in CombineMultiplyAdd() argument
1883 add_mir->dalvikInsn.opcode = static_cast<Instruction::Code>(kMirOpMsubLong); in CombineMultiplyAdd()
1885 add_mir->dalvikInsn.opcode = static_cast<Instruction::Code>(kMirOpMaddLong); in CombineMultiplyAdd()
1889 add_mir->dalvikInsn.opcode = static_cast<Instruction::Code>(kMirOpMsubInt); in CombineMultiplyAdd()
1891 add_mir->dalvikInsn.opcode = static_cast<Instruction::Code>(kMirOpMaddInt); in CombineMultiplyAdd()
1894 add_mir->ssa_rep->num_uses = is_wide ? 6 : 3; in CombineMultiplyAdd()
1898 addend0 = mul_is_first_addend ? add_mir->ssa_rep->uses[2] : add_mir->ssa_rep->uses[0]; in CombineMultiplyAdd()
1899 addend1 = mul_is_first_addend ? add_mir->ssa_rep->uses[3] : add_mir->ssa_rep->uses[1]; in CombineMultiplyAdd()
1901 addend0 = mul_is_first_addend ? add_mir->ssa_rep->uses[1] : add_mir->ssa_rep->uses[0]; in CombineMultiplyAdd()
1904 AllocateSSAUseData(add_mir, add_mir->ssa_rep->num_uses); in CombineMultiplyAdd()
1905 add_mir->ssa_rep->uses[0] = mul_mir->ssa_rep->uses[0]; in CombineMultiplyAdd()
1906 add_mir->ssa_rep->uses[1] = mul_mir->ssa_rep->uses[1]; in CombineMultiplyAdd()
1911 DCHECK_EQ(add_mir->ssa_rep->num_uses, 6); in CombineMultiplyAdd()
1912 add_mir->ssa_rep->uses[2] = mul_mir->ssa_rep->uses[2]; in CombineMultiplyAdd()
1913 add_mir->ssa_rep->uses[3] = mul_mir->ssa_rep->uses[3]; in CombineMultiplyAdd()
1914 add_mir->ssa_rep->uses[4] = addend0; in CombineMultiplyAdd()
1915 add_mir->ssa_rep->uses[5] = addend1; in CombineMultiplyAdd()
1919 DCHECK_EQ(add_mir->ssa_rep->num_uses, 3); in CombineMultiplyAdd()
1920 add_mir->ssa_rep->uses[2] = addend0; in CombineMultiplyAdd()
1923 add_mir->dalvikInsn.vB = SRegToVReg(add_mir->ssa_rep->uses[0]); in CombineMultiplyAdd()
1925 add_mir->dalvikInsn.vC = SRegToVReg(add_mir->ssa_rep->uses[2]); in CombineMultiplyAdd()
1926 add_mir->dalvikInsn.arg[0] = SRegToVReg(add_mir->ssa_rep->uses[4]); in CombineMultiplyAdd()
1928 add_mir->dalvikInsn.vC = SRegToVReg(add_mir->ssa_rep->uses[1]); in CombineMultiplyAdd()
1929 add_mir->dalvikInsn.arg[0] = SRegToVReg(add_mir->ssa_rep->uses[2]); in CombineMultiplyAdd()