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 | 7cf34908920dc714eba7525d38747de2cdc81402 (patch) | |
tree | eedeaffff0a7a134af4b222780b23fcf21d565cd /lib/CodeGen | |
parent | bec6a9ea1281a0b3b37aece91ab0df21e086af61 (diff) | |
download | external_llvm-7cf34908920dc714eba7525d38747de2cdc81402.zip external_llvm-7cf34908920dc714eba7525d38747de2cdc81402.tar.gz external_llvm-7cf34908920dc714eba7525d38747de2cdc81402.tar.bz2 |
Do not repeat the map lookup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16633 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/VirtRegMap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp index bdea59b..4608cde 100644 --- 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!"); |