Fix a bug in live-in detection that caused lost-copy problems to show up.

llvm-svn: 57424
This commit is contained in:
Owen Anderson 2008-10-12 20:39:30 +00:00
parent c4d68546e3
commit fe1f3d6e08
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ static bool isLiveIn(unsigned r, MachineBasicBlock* MBB,
LiveIntervals& LI) { LiveIntervals& LI) {
LiveInterval& I = LI.getOrCreateInterval(r); LiveInterval& I = LI.getOrCreateInterval(r);
unsigned idx = LI.getMBBStartIdx(MBB); 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 /// isLiveOut - help method that determines, from a regno, if a register is