Fix a bug in live-in detection that caused lost-copy problems to show up.
authorOwen Anderson <resistor@mac.com>
Sun, 12 Oct 2008 20:39:30 +0000 (20:39 +0000)
committerOwen Anderson <resistor@mac.com>
Sun, 12 Oct 2008 20:39:30 +0000 (20:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57424 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/StrongPHIElimination.cpp

index d8d2a2316a37379344f5ad7d97b737741de4c87e..5d7bc23694bf9100f033c606e0b892690ba79bf6 100644 (file)
@@ -295,7 +295,7 @@ static bool isLiveIn(unsigned r, MachineBasicBlock* MBB,
                      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