@@ -110,8 +110,8 @@ class MachineCSEImpl {
110
110
SmallSet<MCRegister, 8 > &PhysRefs,
111
111
PhysDefVector &PhysDefs, bool &PhysUseDef) const ;
112
112
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 ;
115
115
bool isCSECandidate (MachineInstr *MI);
116
116
bool isProfitableToCSE (Register CSReg, Register Reg, MachineBasicBlock *CSBB,
117
117
MachineInstr *MI);
@@ -334,8 +334,8 @@ bool MachineCSEImpl::hasLivePhysRegDefUses(const MachineInstr *MI,
334
334
}
335
335
336
336
bool MachineCSEImpl::PhysRegDefsReach (MachineInstr *CSMI, MachineInstr *MI,
337
- SmallSet<MCRegister, 8 > &PhysRefs,
338
- PhysDefVector &PhysDefs,
337
+ const SmallSet<MCRegister, 8 > &PhysRefs,
338
+ const PhysDefVector &PhysDefs,
339
339
bool &NonLocal) const {
340
340
// For now conservatively returns false if the common subexpression is
341
341
// not in the same basic block as the given instruction. The only exception
0 commit comments