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 | c3dd314b78c22007243c98f3f3521c7fdaa67c1b (patch) | |
tree | 2f44fb73a6ea9bb5c24e3dcc86cdca272c9aac87 /lib/CodeGen | |
parent | 82932a5e4a2911cd5faa6376fa9d5dfac9e52091 (diff) |
Invalidate last use of a reused register if the use is a deleted noop copy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34839 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-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 0f5c48aaa9..7b8606c320 100644 --- 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; } |