Lines Matching refs:DefMI
71 const MachineInstr *DefMI, in checkRematerializable() argument
73 assert(DefMI && "Missing instruction"); in checkRematerializable()
75 if (!TII.isTriviallyReMaterializable(*DefMI, aa)) in checkRematerializable()
90 MachineInstr *DefMI = LIS.getInstructionFromIndex(OrigVNI->def); in scanRemattable() local
91 if (!DefMI) in scanRemattable()
93 checkRematerializable(OrigVNI, DefMI, aa); in scanRemattable()
188 MachineInstr *DefMI = nullptr, *UseMI = nullptr; in foldAsLoad() local
194 if (DefMI && DefMI != MI) in foldAsLoad()
198 DefMI = MI; in foldAsLoad()
208 if (!DefMI || !UseMI) in foldAsLoad()
213 if (!allUsesAvailableAt(DefMI, LIS.getInstructionIndex(*DefMI), in foldAsLoad()
220 if (!DefMI->isSafeToMove(nullptr, SawStore)) in foldAsLoad()
223 LLVM_DEBUG(dbgs() << "Try to fold single def: " << *DefMI in foldAsLoad()
230 MachineInstr *FoldMI = TII.foldMemoryOperand(*UseMI, Ops, *DefMI, &LIS); in foldAsLoad()
239 DefMI->addRegisterDead(LI->reg(), nullptr); in foldAsLoad()
240 Dead.push_back(DefMI); in foldAsLoad()