Lines Matching refs:CSMI
93 bool PhysRegDefsReach(MachineInstr *CSMI, MachineInstr *MI,
99 MachineInstr *CSMI, MachineInstr *MI);
265 bool MachineCSE::PhysRegDefsReach(MachineInstr *CSMI, MachineInstr *MI, in PhysRegDefsReach() argument
273 const MachineBasicBlock *CSMBB = CSMI->getParent(); in PhysRegDefsReach()
288 MachineBasicBlock::const_iterator I = CSMI; I = std::next(I); in PhysRegDefsReach()
367 MachineInstr *CSMI, MachineInstr *MI) { in isProfitableToCSE() argument
393 MachineBasicBlock *CSBB = CSMI->getParent(); in isProfitableToCSE()
512 MachineInstr *CSMI = Exps[CSVN]; in ProcessBlock() local
513 if (PhysRegDefsReach(CSMI, MI, PhysRefs, PhysDefs, CrossMBBPhysDef)) in ProcessBlock()
526 MachineInstr *CSMI = Exps[CSVN]; in ProcessBlock() local
528 DEBUG(dbgs() << "*** Found a common subexpression: " << *CSMI); in ProcessBlock()
540 unsigned NewReg = CSMI->getOperand(i).getReg(); in ProcessBlock()
544 if (MO.isImplicit() && !MO.isDead() && CSMI->getOperand(i).isDead()) in ProcessBlock()
561 if (!isProfitableToCSE(NewReg, OldReg, CSMI, MI)) { in ProcessBlock()
597 CSMI->getOperand(ImplicitDefToUpdate).setIsDead(false); in ProcessBlock()
609 if (CSMI->getParent() == MI->getParent()) { in ProcessBlock()
610 for (MachineBasicBlock::iterator II = CSMI, IE = MI; II != IE; ++II) in ProcessBlock()