[llvm] a3e2936 - [SelectionDAGISel] Use MCRegister and Register for LiveInMap. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 31 14:01:05 PDT 2024
Author: Craig Topper
Date: 2024-08-31T14:00:17-07:00
New Revision: a3e293617354ee5be261345a5f1ffabe711632e0
URL: https://github.com/llvm/llvm-project/commit/a3e293617354ee5be261345a5f1ffabe711632e0
DIFF: https://github.com/llvm/llvm-project/commit/a3e293617354ee5be261345a5f1ffabe711632e0.diff
LOG: [SelectionDAGISel] Use MCRegister and Register for LiveInMap. NFC
This matches the MachineBasicBlock liveins used to populate it.
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 8e268d4f4968ea..b37e54d66ddf51 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -673,7 +673,7 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
TLI->insertCopiesSplitCSR(EntryMBB, Returns);
}
- DenseMap<unsigned, unsigned> LiveInMap;
+ DenseMap<MCRegister, Register> LiveInMap;
if (!FuncInfo->ArgDbgValues.empty())
for (std::pair<MCRegister, Register> LI : RegInfo->liveins())
if (LI.second)
@@ -705,7 +705,7 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
continue;
// If Reg is live-in then update debug info to track its copy in a vreg.
- DenseMap<unsigned, unsigned>::iterator LDI = LiveInMap.find(Reg);
+ DenseMap<MCRegister, Register>::iterator LDI = LiveInMap.find(Reg);
if (LDI != LiveInMap.end()) {
assert(!hasFI && "There's no handling of frame pointer updating here yet "
"- add if needed");
More information about the llvm-commits
mailing list