[llvm-commits] CVS: llvm/lib/CodeGen/VirtRegMap.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Oct 1 16:16:53 PDT 2004
Changes in directory llvm/lib/CodeGen:
VirtRegMap.cpp updated: 1.29 -> 1.30
---
Log message:
Do not repeat the map lookup
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/CodeGen/VirtRegMap.cpp
diff -u llvm/lib/CodeGen/VirtRegMap.cpp:1.29 llvm/lib/CodeGen/VirtRegMap.cpp:1.30
--- llvm/lib/CodeGen/VirtRegMap.cpp:1.29 Fri Oct 1 18:15:36 2004
+++ llvm/lib/CodeGen/VirtRegMap.cpp Fri Oct 1 18:16:43 2004
@@ -449,7 +449,7 @@
std::map<int, MachineInstr*>::iterator MDSI = MaybeDeadStores.find(SS);
if (MDSI != MaybeDeadStores.end()) {
if (MR & VirtRegMap::isRef) // Previous store is not dead.
- MaybeDeadStores.erase(SS);
+ MaybeDeadStores.erase(MDSI);
else {
// If we get here, the store is dead, nuke it now.
assert(MR == VirtRegMap::isMod && "Can't be modref!");
More information about the llvm-commits
mailing list