mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 06:27:16 +00:00
When promoting a load to a reg-reg copy, where the load was a previous
instruction folded with spill code, make sure the remove the load from the virt reg folded map. llvm-svn: 28040
This commit is contained in:
parent
befcd1e76d
commit
a9f3c7c50a
@ -712,6 +712,7 @@ void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, VirtRegMap &VRM) {
|
||||
NextMII = &MI;
|
||||
--NextMII; // backtrack to the copy.
|
||||
}
|
||||
VRM.RemoveFromFoldedVirtMap(&MI);
|
||||
MBB.erase(&MI);
|
||||
goto ProcessNextInst;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user