[llvm] bf730e1 - [CodeGen] Fix a simple FIXME. NFC.
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 9 02:54:19 PDT 2020
Author: Jay Foad
Date: 2020-04-09T10:54:03+01:00
New Revision: bf730e16863de43d7c991e9c9c802150e304272b
URL: https://github.com/llvm/llvm-project/commit/bf730e16863de43d7c991e9c9c802150e304272b
DIFF: https://github.com/llvm/llvm-project/commit/bf730e16863de43d7c991e9c9c802150e304272b.diff
LOG: [CodeGen] Fix a simple FIXME. NFC.
Added:
Modified:
llvm/lib/CodeGen/MachineLoopUtils.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/MachineLoopUtils.cpp b/llvm/lib/CodeGen/MachineLoopUtils.cpp
index cf30e28449cd..2295e1ca6d4e 100644
--- a/llvm/lib/CodeGen/MachineLoopUtils.cpp
+++ b/llvm/lib/CodeGen/MachineLoopUtils.cpp
@@ -42,8 +42,7 @@ MachineBasicBlock *llvm::PeelSingleBlockLoop(LoopPeelDirection Direction,
else
MF.insert(std::next(Loop->getIterator()), NewBB);
- // FIXME: Add DenseMapInfo trait for Register so we can use it as a key.
- DenseMap<unsigned, Register> Remaps;
+ DenseMap<Register, Register> Remaps;
auto InsertPt = NewBB->end();
for (MachineInstr &MI : *Loop) {
MachineInstr *NewMI = MF.CloneMachineInstr(&MI);
More information about the llvm-commits
mailing list