Lines Matching refs:DefMI
72 const MachineInstr *DefMI, in checkRematerializable() argument
74 assert(DefMI && "Missing instruction"); in checkRematerializable()
76 if (!TII.isTriviallyReMaterializable(*DefMI, aa)) in checkRematerializable()
91 MachineInstr *DefMI = LIS.getInstructionFromIndex(OrigVNI->def); in scanRemattable() local
92 if (!DefMI) in scanRemattable()
94 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()
236 DefMI->addRegisterDead(LI->reg, nullptr); in foldAsLoad()
237 Dead.push_back(DefMI); in foldAsLoad()