[llvm-commits] [llvm] r57424 - /llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp

Owen Anderson resistor at mac.com
Sun Oct 12 13:39:30 PDT 2008


Author: resistor
Date: Sun Oct 12 15:39:30 2008
New Revision: 57424

URL: http://llvm.org/viewvc/llvm-project?rev=57424&view=rev
Log:
Fix a bug in live-in detection that caused lost-copy problems to show up.

Modified:
    llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp

Modified: llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp?rev=57424&r1=57423&r2=57424&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp (original)
+++ llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp Sun Oct 12 15:39:30 2008
@@ -295,7 +295,7 @@
                      LiveIntervals& LI) {
   LiveInterval& I = LI.getOrCreateInterval(r);
   unsigned idx = LI.getMBBStartIdx(MBB);
-  return I.liveBeforeAndAt(idx);
+  return I.liveAt(idx);
 }
 
 /// isLiveOut - help method that determines, from a regno, if a register is





More information about the llvm-commits mailing list