mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
Fix off-by-one error when updating live intervals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56567 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -822,7 +822,7 @@ void StrongPHIElimination::InsertCopies(MachineDomTreeNode* MDTN,
|
|||||||
LiveIntervals::getUseIndex(LI.getInstructionIndex(I)));
|
LiveIntervals::getUseIndex(LI.getInstructionIndex(I)));
|
||||||
|
|
||||||
LiveRange LR (LI.getMBBStartIdx(I->getParent()),
|
LiveRange LR (LI.getMBBStartIdx(I->getParent()),
|
||||||
LiveIntervals::getUseIndex(LI.getInstructionIndex(I)),
|
LiveIntervals::getUseIndex(LI.getInstructionIndex(I))+1,
|
||||||
FirstVN);
|
FirstVN);
|
||||||
|
|
||||||
Int.addRange(LR);
|
Int.addRange(LR);
|
||||||
|
Reference in New Issue
Block a user