Lines Matching refs:UseInst

447       MachineInstr &UseInst = *MO.getParent();  in PerformSinkAndFold()  local
448 if (UseInst.isCopy()) { in PerformSinkAndFold()
450 if (const MachineOperand &O = UseInst.getOperand(0); O.isReg()) in PerformSinkAndFold()
466 } else if (UseInst.mayLoadOrStore()) { in PerformSinkAndFold()
468 if (!TII->canFoldIntoAddrMode(UseInst, Reg, MI, AM)) in PerformSinkAndFold()
475 if (UseInst.getParent() != MI.getParent()) { in PerformSinkAndFold()
495 const MachineBasicBlock &MBB = *UseInst.getParent(); in PerformSinkAndFold()
506 SinkInto.emplace_back(&UseInst, MaybeAM); in PerformSinkAndFold()
625 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
627 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
628 return UseBlock == MBB && UseInst->isPHI() && in AllUsesDominatedByBlock()
629 UseInst->getOperand(OpNo + 1).getMBB() == DefMBB; in AllUsesDominatedByBlock()
637 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
638 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock()
639 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
640 if (UseInst->isPHI()) { in AllUsesDominatedByBlock()
643 UseBlock = UseInst->getOperand(OpNo+1).getMBB(); in AllUsesDominatedByBlock()
1116 for (MachineInstr &UseInst : MRI->use_nodbg_instructions(Reg)) { in isProfitableToSinkTo()
1117 MachineBasicBlock *UseBlock = UseInst.getParent(); in isProfitableToSinkTo()
1118 if (UseBlock == SuccToSinkTo && !UseInst.isPHI()) in isProfitableToSinkTo()