Skip to content

Commit dd9bb32

Browse files
committed
[MachineCSE] Const correct some function arguments. NFC
1 parent a70175a commit dd9bb32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/CodeGen/MachineCSE.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

336336
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,
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

Comments
 (0)