Lines Matching refs:UseInst
333 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
334 unsigned OpNo = UseInst->getOperandNo(&MO); in AllUsesDominatedByBlock()
335 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
336 return UseBlock == MBB && UseInst->isPHI() && in AllUsesDominatedByBlock()
337 UseInst->getOperand(OpNo + 1).getMBB() == DefMBB; in AllUsesDominatedByBlock()
345 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
346 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock()
347 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
348 if (UseInst->isPHI()) { in AllUsesDominatedByBlock()
351 UseBlock = UseInst->getOperand(OpNo+1).getMBB(); in AllUsesDominatedByBlock()
760 for (MachineInstr &UseInst : MRI->use_nodbg_instructions(Reg)) { in isProfitableToSinkTo()
761 MachineBasicBlock *UseBlock = UseInst.getParent(); in isProfitableToSinkTo()
762 if (UseBlock == SuccToSinkTo && !UseInst.isPHI()) in isProfitableToSinkTo()