diff options
author | Owen Anderson <resistor@mac.com> | 2008-10-12 20:39:30 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-10-12 20:39:30 +0000 |
commit | fe1f3d6e088c630c679639ab4a319ab33d4abdf1 (patch) | |
tree | 30d7a1858665f9ed737b785aca787f55911b21d8 /llvm/lib | |
parent | c4d68546e3a3e6bca2352deaa841d96771bc6ef1 (diff) | |
download | bcm5719-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.cpp | 2 |
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 |