From dd9bb32b9774f0e993837081a79d08e11cfeda02 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 2 Mar 2025 20:04:36 -0800 Subject: [MachineCSE] Const correct some function arguments. NFC --- llvm/lib/CodeGen/MachineCSE.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/lib/CodeGen/MachineCSE.cpp') diff --git a/llvm/lib/CodeGen/MachineCSE.cpp b/llvm/lib/CodeGen/MachineCSE.cpp index b70d50ce..6d14509 100644 --- a/llvm/lib/CodeGen/MachineCSE.cpp +++ b/llvm/lib/CodeGen/MachineCSE.cpp @@ -110,8 +110,8 @@ private: SmallSet &PhysRefs, PhysDefVector &PhysDefs, bool &PhysUseDef) const; bool PhysRegDefsReach(MachineInstr *CSMI, MachineInstr *MI, - SmallSet &PhysRefs, - PhysDefVector &PhysDefs, bool &NonLocal) const; + const SmallSet &PhysRefs, + const PhysDefVector &PhysDefs, bool &NonLocal) const; bool isCSECandidate(MachineInstr *MI); bool isProfitableToCSE(Register CSReg, Register Reg, MachineBasicBlock *CSBB, MachineInstr *MI); @@ -334,8 +334,8 @@ bool MachineCSEImpl::hasLivePhysRegDefUses(const MachineInstr *MI, } bool MachineCSEImpl::PhysRegDefsReach(MachineInstr *CSMI, MachineInstr *MI, - SmallSet &PhysRefs, - PhysDefVector &PhysDefs, + const SmallSet &PhysRefs, + const PhysDefVector &PhysDefs, bool &NonLocal) const { // For now conservatively returns false if the common subexpression is // not in the same basic block as the given instruction. The only exception -- cgit v1.1