@@ -110,8 +110,8 @@ class MachineCSEImpl {
110110 SmallSet<MCRegister, 8 > &PhysRefs,
111111 PhysDefVector &PhysDefs, bool &PhysUseDef) const ;
112112 bool PhysRegDefsReach (MachineInstr *CSMI, MachineInstr *MI,
113- SmallSet<MCRegister, 8 > &PhysRefs,
114- PhysDefVector &PhysDefs, bool &NonLocal) const ;
113+ const SmallSet<MCRegister, 8 > &PhysRefs,
114+ const PhysDefVector &PhysDefs, bool &NonLocal) const ;
115115 bool isCSECandidate (MachineInstr *MI);
116116 bool isProfitableToCSE (Register CSReg, Register Reg, MachineBasicBlock *CSBB,
117117 MachineInstr *MI);
@@ -334,8 +334,8 @@ bool MachineCSEImpl::hasLivePhysRegDefUses(const MachineInstr *MI,
334334}
335335
336336bool MachineCSEImpl::PhysRegDefsReach (MachineInstr *CSMI, MachineInstr *MI,
337- SmallSet<MCRegister, 8 > &PhysRefs,
338- PhysDefVector &PhysDefs,
337+ const SmallSet<MCRegister, 8 > &PhysRefs,
338+ const PhysDefVector &PhysDefs,
339339 bool &NonLocal) const {
340340 // For now conservatively returns false if the common subexpression is
341341 // not in the same basic block as the given instruction. The only exception
0 commit comments