summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-10-12 20:39:30 +0000
committerOwen Anderson <resistor@mac.com>2008-10-12 20:39:30 +0000
commitfe1f3d6e088c630c679639ab4a319ab33d4abdf1 (patch)
tree30d7a1858665f9ed737b785aca787f55911b21d8 /llvm/lib
parentc4d68546e3a3e6bca2352deaa841d96771bc6ef1 (diff)
downloadbcm5719-llvm-fe1f3d6e088c630c679639ab4a319ab33d4abdf1.tar.gz
bcm5719-llvm-fe1f3d6e088c630c679639ab4a319ab33d4abdf1.zip
Fix a bug in live-in detection that caused lost-copy problems to show up.
llvm-svn: 57424
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/StrongPHIElimination.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StrongPHIElimination.cpp b/llvm/lib/CodeGen/StrongPHIElimination.cpp
index d8d2a2316a3..5d7bc23694b 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
OpenPOWER on IntegriCloud