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:
82932a5
)
Invalidate last use of a reused register if the use is a deleted noop copy.
author
Evan Cheng
<evan.cheng@apple.com>
Fri, 2 Mar 2007 05:41:42 +0000
(
05:41
+0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Fri, 2 Mar 2007 05:41:42 +0000
(
05:41
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34839
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 0f5c48aaa9b84bdff09445c403015055ffaed055..7b8606c32093152db3aef2efab8b3f42a2f146e1 100644
(file)
--- a/
lib/CodeGen/VirtRegMap.cpp
+++ b/
lib/CodeGen/VirtRegMap.cpp
@@
-937,6
+937,7
@@
void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, VirtRegMap &VRM) {
DOUT << "Removing now-noop copy: " << MI;
MBB.erase(&MI);
VRM.RemoveFromFoldedVirtMap(&MI);
+ Spills.UpdateLastUse(Src, NULL);
Spills.disallowClobberPhysReg(VirtReg);
goto ProcessNextInst;
}