Lines Matching refs:UseInst
436 MachineInstr &UseInst = *MO.getParent(); in PerformSinkAndFold() local
437 if (UseInst.isCopy()) { in PerformSinkAndFold()
439 if (const MachineOperand &O = UseInst.getOperand(0); O.isReg()) in PerformSinkAndFold()
455 } else if (UseInst.mayLoadOrStore()) { in PerformSinkAndFold()
457 if (!TII->canFoldIntoAddrMode(UseInst, Reg, MI, AM)) in PerformSinkAndFold()
464 if (UseInst.getParent() != MI.getParent()) { in PerformSinkAndFold()
484 const MachineBasicBlock &MBB = *UseInst.getParent(); in PerformSinkAndFold()
495 SinkInto.emplace_back(&UseInst, MaybeAM); in PerformSinkAndFold()
614 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
616 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
617 return UseBlock == MBB && UseInst->isPHI() && in AllUsesDominatedByBlock()
618 UseInst->getOperand(OpNo + 1).getMBB() == DefMBB; in AllUsesDominatedByBlock()
626 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
627 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock()
628 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
629 if (UseInst->isPHI()) { in AllUsesDominatedByBlock()
632 UseBlock = UseInst->getOperand(OpNo+1).getMBB(); in AllUsesDominatedByBlock()
1063 for (MachineInstr &UseInst : MRI->use_nodbg_instructions(Reg)) { in isProfitableToSinkTo()
1064 MachineBasicBlock *UseBlock = UseInst.getParent(); in isProfitableToSinkTo()
1065 if (UseBlock == SuccToSinkTo && !UseInst.isPHI()) in isProfitableToSinkTo()