projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bec6a9e
)
Do not repeat the map lookup
author
Chris Lattner
<sabre@nondot.org>
Fri, 1 Oct 2004 23:16:43 +0000
(23:16 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 1 Oct 2004 23:16:43 +0000
(23:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16633
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/VirtRegMap.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/VirtRegMap.cpp
b/lib/CodeGen/VirtRegMap.cpp
index bdea59b53a5ed995b2b310c852602834155e9212..4608cdeaf5374662648b4930e00c9601f93b9f58 100644
(file)
--- a/
lib/CodeGen/VirtRegMap.cpp
+++ b/
lib/CodeGen/VirtRegMap.cpp
@@
-449,7
+449,7
@@
void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, const VirtRegMap &VRM) {
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!");