Lines Matching refs:I2

87   void combine(MachineInstr *I1, MachineInstr *I2,
90 bool isSafeToMoveTogether(MachineInstr *I1, MachineInstr *I2,
222 MachineInstr *I2, in isSafeToMoveTogether() argument
226 unsigned I2UseReg = UseReg(I2->getOperand(1)); in isSafeToMoveTogether()
240 MachineBasicBlock::reverse_iterator I(I2), in isSafeToMoveTogether()
249 if (I2->killsRegister(I2UseReg)) in isSafeToMoveTogether()
276 removeKillInfo(I2, KilledOperand); in isSafeToMoveTogether()
286 MachineBasicBlock::iterator I(I1), End(I2); in isSafeToMoveTogether()
289 End = std::next(MachineBasicBlock::iterator(I2)); in isSafeToMoveTogether()
435 MachineInstr *I2 = findPairable(I1, DoInsertAtI1); in runOnMachineFunction() local
436 if (I2) { in runOnMachineFunction()
438 combine(I1, I2, MI, DoInsertAtI1); in runOnMachineFunction()
452 MachineBasicBlock::iterator I2 = std::next(MachineBasicBlock::iterator(I1)); in findPairable() local
455 for (MachineBasicBlock::iterator End = I1->getParent()->end(); I2 != End; in findPairable()
456 ++I2) { in findPairable()
458 if (I2->modifiesRegister(I1DestReg, TRI)) in findPairable()
462 if (!isCombinableInstType(I2, TII, ShouldCombineAggressively)) in findPairable()
466 if (ShouldCombineAggressively && PotentiallyNewifiableTFR.count(I2)) in findPairable()
469 unsigned I2DestReg = I2->getOperand(0).getReg(); in findPairable()
483 if ((IsI2LowReg && !areCombinableOperations(TRI, I1, I2)) || in findPairable()
484 (IsI1LowReg && !areCombinableOperations(TRI, I2, I1))) in findPairable()
487 if (isSafeToMoveTogether(I1, I2, I1DestReg, I2DestReg, in findPairable()
489 return I2; in findPairable()
497 void HexagonCopyToCombine::combine(MachineInstr *I1, MachineInstr *I2, in combine() argument
502 if ((MachineInstr *)MI == I2) ++MI; in combine()
506 unsigned I2DestReg = I2->getOperand(0).getReg(); in combine()
519 I2->getOperand(1); in combine()
520 MachineOperand &HiOperand = IsI1Loreg ? I2->getOperand(1) : in combine()
527 MachineBasicBlock::iterator InsertPt(DoInsertAtI1 ? I1 : I2); in combine()
539 I2->eraseFromParent(); in combine()