Lines Matching refs:UseInst
299 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
300 unsigned OpNo = UseInst->getOperandNo(&MO); in AllUsesDominatedByBlock()
301 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
302 return UseBlock == MBB && UseInst->isPHI() && in AllUsesDominatedByBlock()
303 UseInst->getOperand(OpNo + 1).getMBB() == DefMBB; in AllUsesDominatedByBlock()
311 MachineInstr *UseInst = MO.getParent(); in AllUsesDominatedByBlock() local
312 unsigned OpNo = &MO - &UseInst->getOperand(0); in AllUsesDominatedByBlock()
313 MachineBasicBlock *UseBlock = UseInst->getParent(); in AllUsesDominatedByBlock()
314 if (UseInst->isPHI()) { in AllUsesDominatedByBlock()
317 UseBlock = UseInst->getOperand(OpNo+1).getMBB(); in AllUsesDominatedByBlock()
641 for (MachineInstr &UseInst : MRI->use_nodbg_instructions(Reg)) { in isProfitableToSinkTo()
642 MachineBasicBlock *UseBlock = UseInst.getParent(); in isProfitableToSinkTo()
643 if (UseBlock == SuccToSinkTo && !UseInst.isPHI()) in isProfitableToSinkTo()