mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 08:24:12 +00:00
Do not repeat the map lookup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16633 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bec6a9ea12
commit
7cf3490892
@ -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!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user