forked from OSchip/llvm-project
Fix a bug in live-in detection that caused lost-copy problems to show up.
llvm-svn: 57424
This commit is contained in:
parent
c4d68546e3
commit
fe1f3d6e08
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue