diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-03-02 05:41:42 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-03-02 05:41:42 +0000 |
commit | 08f2f0d145f1c2689ff4d1231d5be2f804011a92 (patch) | |
tree | 9fc51a2a13f094a6f6c02407eba2609fc5b9a3b7 /llvm/lib/CodeGen/VirtRegMap.cpp | |
parent | 9c7e5e365db2293ff6fd05751a8101030ab9fc27 (diff) | |
download | bcm5719-llvm-08f2f0d145f1c2689ff4d1231d5be2f804011a92.tar.gz bcm5719-llvm-08f2f0d145f1c2689ff4d1231d5be2f804011a92.zip |
Invalidate last use of a reused register if the use is a deleted noop copy.
llvm-svn: 34839
Diffstat (limited to 'llvm/lib/CodeGen/VirtRegMap.cpp')
-rw-r--r-- | llvm/lib/CodeGen/VirtRegMap.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp index 0f5c48aaa9b..7b8606c3209 100644 --- a/llvm/lib/CodeGen/VirtRegMap.cpp +++ b/llvm/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; } |