Lines Matching refs:DefMI
71 const MachineInstr *DefMI) { in checkRematerializable() argument
72 assert(DefMI && "Missing instruction"); in checkRematerializable()
74 if (!TII.isTriviallyReMaterializable(*DefMI)) in checkRematerializable()
89 MachineInstr *DefMI = LIS.getInstructionFromIndex(OrigVNI->def); in scanRemattable() local
90 if (!DefMI) in scanRemattable()
92 checkRematerializable(OrigVNI, DefMI); in scanRemattable()
202 MachineInstr *DefMI = nullptr, *UseMI = nullptr; in foldAsLoad() local
208 if (DefMI && DefMI != MI) in foldAsLoad()
212 DefMI = MI; in foldAsLoad()
222 if (!DefMI || !UseMI) in foldAsLoad()
227 if (!allUsesAvailableAt(DefMI, LIS.getInstructionIndex(*DefMI), in foldAsLoad()
234 if (!DefMI->isSafeToMove(nullptr, SawStore)) in foldAsLoad()
237 LLVM_DEBUG(dbgs() << "Try to fold single def: " << *DefMI in foldAsLoad()
244 MachineInstr *FoldMI = TII.foldMemoryOperand(*UseMI, Ops, *DefMI, &LIS); in foldAsLoad()
253 DefMI->addRegisterDead(LI->reg(), nullptr); in foldAsLoad()
254 Dead.push_back(DefMI); in foldAsLoad()