Lines Matching refs:CSMI
93 bool PhysRegDefsReach(MachineInstr *CSMI, MachineInstr *MI,
99 MachineInstr *CSMI, MachineInstr *MI);
269 bool MachineCSE::PhysRegDefsReach(MachineInstr *CSMI, MachineInstr *MI, in PhysRegDefsReach() argument
277 const MachineBasicBlock *CSMBB = CSMI->getParent(); in PhysRegDefsReach()
292 MachineBasicBlock::const_iterator I = CSMI; I = std::next(I); in PhysRegDefsReach()
366 MachineInstr *CSMI, MachineInstr *MI) { in isProfitableToCSE() argument
392 MachineBasicBlock *CSBB = CSMI->getParent(); in isProfitableToCSE()
513 MachineInstr *CSMI = Exps[CSVN]; in ProcessBlock() local
514 if (PhysRegDefsReach(CSMI, MI, PhysRefs, PhysDefs, CrossMBBPhysDef)) in ProcessBlock()
527 MachineInstr *CSMI = Exps[CSVN]; in ProcessBlock() local
529 DEBUG(dbgs() << "*** Found a common subexpression: " << *CSMI); in ProcessBlock()
541 unsigned NewReg = CSMI->getOperand(i).getReg(); in ProcessBlock()
545 if (MO.isImplicit() && !MO.isDead() && CSMI->getOperand(i).isDead()) in ProcessBlock()
562 if (!isProfitableToCSE(NewReg, OldReg, CSMI, MI)) { in ProcessBlock()
598 CSMI->getOperand(ImplicitDefsToUpdate[i]).setIsDead(false); in ProcessBlock()
610 if (CSMI->getParent() == MI->getParent()) { in ProcessBlock()
611 for (MachineBasicBlock::iterator II = CSMI, IE = MI; II != IE; ++II) in ProcessBlock()