projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35f2705
)
When promoting a load to a reg-reg copy, where the load was a previous
author
Chris Lattner
<sabre@nondot.org>
Mon, 1 May 2006 21:17:10 +0000
(21:17 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 1 May 2006 21:17:10 +0000
(21:17 +0000)
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
lib/CodeGen/VirtRegMap.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/VirtRegMap.cpp
b/lib/CodeGen/VirtRegMap.cpp
index 7523d73c2e6c17ac52e5423b0742299d61c099a4..fa5a6ac8e8074d12de155e6da597cb5b201e53cf 100644
(file)
--- 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;
}