Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:OrigMI

75 /// allUsesAvailableAt - Return true if all registers used by OrigMI at
77 bool LiveRangeEdit::allUsesAvailableAt(const MachineInstr *OrigMI,
82 for (unsigned i = 0, e = OrigMI->getNumOperands(); i != e; ++i) {
83 const MachineOperand &MO = OrigMI->getOperand(i);
89 if (MRI.isConstantPhysReg(MO.getReg(), *OrigMI->getParent()->getParent()))
100 // It would be incorrect if OrigMI redefines the register.
122 if (RM.OrigMI)
123 DefIdx = LIS.getInstructionIndex(RM.OrigMI);
126 RM.OrigMI = LIS.getInstructionFromIndex(DefIdx);
127 assert(RM.OrigMI && "No defining instruction for remattable value");
131 if (cheapAsAMove && !RM.OrigMI->isAsCheapAsAMove())
135 if (!allUsesAvailableAt(RM.OrigMI, DefIdx, UseIdx))
147 assert(RM.OrigMI && "Invalid remat");
148 TII.reMaterialize(MBB, MI, DestReg, 0, RM.OrigMI, tri);