summaryrefslogtreecommitdiff
path: root/lib/CodeGen/StrongPHIElimination.cpp
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
commitd55fccde4cc8a263f668c2f1db7fbe96fc19d4a6 (patch)
treef89c712dc62bee7da1142a62c3b1eb9cabf0b373 /lib/CodeGen/StrongPHIElimination.cpp
parent547a3913c5fe550f08ff6041f31249fee093306c (diff)
downloadllvm-d55fccde4cc8a263f668c2f1db7fbe96fc19d4a6.tar.gz
llvm-d55fccde4cc8a263f668c2f1db7fbe96fc19d4a6.tar.bz2
llvm-d55fccde4cc8a263f668c2f1db7fbe96fc19d4a6.tar.xz
Fix a bug in live-in detection that caused lost-copy problems to show up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57424 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/StrongPHIElimination.cpp')
-rw-r--r--lib/CodeGen/StrongPHIElimination.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/StrongPHIElimination.cpp b/lib/CodeGen/StrongPHIElimination.cpp
index d8d2a2316a..5d7bc23694 100644
--- a/lib/CodeGen/StrongPHIElimination.cpp
+++ b/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