Lines Matching refs:UseInst
329 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
330 unsigned OpNo = UseInst->getOperandNo(&MO); in AllUsesDominatedByBlock()
331 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
332 return UseBlock == MBB && UseInst->isPHI() && in AllUsesDominatedByBlock()
333 UseInst->getOperand(OpNo + 1).getMBB() == DefMBB; in AllUsesDominatedByBlock()
341 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
342 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock()
343 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
344 if (UseInst->isPHI()) { in AllUsesDominatedByBlock()
347 UseBlock = UseInst->getOperand(OpNo+1).getMBB(); in AllUsesDominatedByBlock()
757 for (MachineInstr &UseInst : MRI->use_nodbg_instructions(Reg)) { in isProfitableToSinkTo()
758 MachineBasicBlock *UseBlock = UseInst.getParent(); in isProfitableToSinkTo()
759 if (UseBlock == SuccToSinkTo && !UseInst.isPHI()) in isProfitableToSinkTo()