Lines Matching refs:DefI

317   const MachineInstr *DefI = Def->getParent();  in isSafeToMove()  local
319 assert(DefI->getParent() == Insert->getParent()); in isSafeToMove()
333 if (Def != DefI->defs().begin()) in isSafeToMove()
341 for (const auto &SubsequentDef : drop_begin(DefI->defs())) { in isSafeToMove()
342 auto I = std::next(MachineBasicBlock::const_iterator(DefI)); in isSafeToMove()
355 const MachineBasicBlock *MBB = DefI->getParent(); in isSafeToMove()
356 auto NextI = std::next(MachineBasicBlock::const_iterator(DefI)); in isSafeToMove()
364 if (WebAssembly::isCatch(DefI->getOpcode())) in isSafeToMove()
369 for (const MachineOperand &MO : DefI->operands()) { in isSafeToMove()
399 query(*DefI, Read, Write, Effects, StackPointer); in isSafeToMove()
408 MachineBasicBlock::const_iterator D(DefI), I(Insert); in isSafeToMove()
856 MachineInstr *DefI = getVRegDef(Reg, Insert, MRI, LIS); in runOnMachineFunction() local
857 if (!DefI) in runOnMachineFunction()
862 if (DefI->isInlineAsm()) in runOnMachineFunction()
867 if (WebAssembly::isArgument(DefI->getOpcode())) in runOnMachineFunction()
871 DefI->findRegisterDefOperand(Reg, /*TRI=*/nullptr); in runOnMachineFunction()
880 bool SameBlock = DefI->getParent() == &MBB; in runOnMachineFunction()
883 if (CanMove && hasOneNonDBGUse(Reg, DefI, MRI, MDT, LIS)) { in runOnMachineFunction()
884 Insert = moveForSingleUse(Reg, Use, DefI, MBB, Insert, LIS, MFI, MRI); in runOnMachineFunction()
891 } else if (shouldRematerialize(*DefI, TII)) { in runOnMachineFunction()
893 rematerializeCheapDef(Reg, Use, *DefI, MBB, Insert->getIterator(), in runOnMachineFunction()
897 Insert = moveAndTeeForMultiUse(Reg, Use, DefI, MBB, Insert, LIS, MFI, in runOnMachineFunction()