aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCSE.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2025-03-02 20:04:36 -0800
committerCraig Topper <craig.topper@sifive.com>2025-03-02 22:33:26 -0800
commitdd9bb32b9774f0e993837081a79d08e11cfeda02 (patch)
tree36136a55af8c907fb7261e16b2b9b0abe34e9f43 /llvm/lib/CodeGen/MachineCSE.cpp
parenta70175ab932412ac7d46f3c82cd19384c33fc868 (diff)
downloadllvm-dd9bb32b9774f0e993837081a79d08e11cfeda02.zip
llvm-dd9bb32b9774f0e993837081a79d08e11cfeda02.tar.gz
llvm-dd9bb32b9774f0e993837081a79d08e11cfeda02.tar.bz2
[MachineCSE] Const correct some function arguments. NFC
Diffstat (limited to 'llvm/lib/CodeGen/MachineCSE.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineCSE.cpp8
1 files changed, 4 insertions, 4 deletions
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<MCRegister, 8> &PhysRefs,
PhysDefVector &PhysDefs, bool &PhysUseDef) const;
bool PhysRegDefsReach(MachineInstr *CSMI, MachineInstr *MI,
- SmallSet<MCRegister, 8> &PhysRefs,
- PhysDefVector &PhysDefs, bool &NonLocal) const;
+ const SmallSet<MCRegister, 8> &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<MCRegister, 8> &PhysRefs,
- PhysDefVector &PhysDefs,
+ const SmallSet<MCRegister, 8> &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