diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-10-01 23:16:43 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-10-01 23:16:43 +0000 |
| commit | 00db230c7c72c00c41a69213a59e630469854366 (patch) | |
| tree | f38d4ca70f60bc568f51f1763edb80761616e20f /llvm/lib/CodeGen | |
| parent | 1905ae69c116541347eb8058c46a7cc53bde8d9c (diff) | |
| download | bcm5719-llvm-00db230c7c72c00c41a69213a59e630469854366.tar.gz bcm5719-llvm-00db230c7c72c00c41a69213a59e630469854366.zip | |
Do not repeat the map lookup
llvm-svn: 16633
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/VirtRegMap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp index bdea59b53a5..4608cdeaf53 100644 --- a/llvm/lib/CodeGen/VirtRegMap.cpp +++ b/llvm/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!"); |

