From fe1f3d6e088c630c679639ab4a319ab33d4abdf1 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Sun, 12 Oct 2008 20:39:30 +0000 Subject: [PATCH] Fix a bug in live-in detection that caused lost-copy problems to show up. llvm-svn: 57424 --- llvm/lib/CodeGen/StrongPHIElimination.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/StrongPHIElimination.cpp b/llvm/lib/CodeGen/StrongPHIElimination.cpp index d8d2a2316a37..5d7bc23694bf 100644 --- a/llvm/lib/CodeGen/StrongPHIElimination.cpp +++ b/llvm/lib/CodeGen/StrongPHIElimination.cpp @@ -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