[llvm-commits] CVS: llvm/lib/CodeGen/VirtRegMap.cpp

Evan Cheng evan.cheng at apple.com
Thu Mar 1 21:41:59 PST 2007



Changes in directory llvm/lib/CodeGen:

VirtRegMap.cpp updated: 1.101 -> 1.102
---
Log message:

Invalidate last use of a reused register if the use is a deleted noop copy.

---
Diffs of the changes:  (+1 -0)

 VirtRegMap.cpp |    1 +
 1 files changed, 1 insertion(+)


Index: llvm/lib/CodeGen/VirtRegMap.cpp
diff -u llvm/lib/CodeGen/VirtRegMap.cpp:1.101 llvm/lib/CodeGen/VirtRegMap.cpp:1.102
--- llvm/lib/CodeGen/VirtRegMap.cpp:1.101	Wed Feb 28 20:27:30 2007
+++ llvm/lib/CodeGen/VirtRegMap.cpp	Thu Mar  1 23:41:42 2007
@@ -937,6 +937,7 @@
             DOUT << "Removing now-noop copy: " << MI;
             MBB.erase(&MI);
             VRM.RemoveFromFoldedVirtMap(&MI);
+            Spills.UpdateLastUse(Src, NULL);
             Spills.disallowClobberPhysReg(VirtReg);
             goto ProcessNextInst;
           }






More information about the llvm-commits mailing list