diff options
author | Chris Lattner <sabre@nondot.org> | 2006-05-01 21:17:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-05-01 21:17:10 +0000 |
commit | 8a18c13fa5d226e60a875eff5ae66cefe4093bc9 (patch) | |
tree | b5d21cd8386d433d8b4e35d550f7ee53bd54d02b /lib/CodeGen/VirtRegMap.cpp | |
parent | 35f2705e3de4600c3621b883eed9b22e4607ddf4 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28040 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/VirtRegMap.cpp')
-rw-r--r-- | lib/CodeGen/VirtRegMap.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp index 7523d73c2e..fa5a6ac8e8 100644 --- a/lib/CodeGen/VirtRegMap.cpp +++ b/lib/CodeGen/VirtRegMap.cpp @@ -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; } |