mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Do not repeat the map lookup
llvm-svn: 16633
This commit is contained in:
parent
c521544a32
commit
815b635639
@ -449,7 +449,7 @@ void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, const VirtRegMap &VRM) {
|
|||||||
std::map<int, MachineInstr*>::iterator MDSI = MaybeDeadStores.find(SS);
|
std::map<int, MachineInstr*>::iterator MDSI = MaybeDeadStores.find(SS);
|
||||||
if (MDSI != MaybeDeadStores.end()) {
|
if (MDSI != MaybeDeadStores.end()) {
|
||||||
if (MR & VirtRegMap::isRef) // Previous store is not dead.
|
if (MR & VirtRegMap::isRef) // Previous store is not dead.
|
||||||
MaybeDeadStores.erase(SS);
|
MaybeDeadStores.erase(MDSI);
|
||||||
else {
|
else {
|
||||||
// If we get here, the store is dead, nuke it now.
|
// If we get here, the store is dead, nuke it now.
|
||||||
assert(MR == VirtRegMap::isMod && "Can't be modref!");
|
assert(MR == VirtRegMap::isMod && "Can't be modref!");
|
||||||
|
Loading…
Reference in New Issue
Block a user