diff options
| author | Owen Anderson <resistor@mac.com> | 2008-09-24 21:30:38 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2008-09-24 21:30:38 +0000 |
| commit | 65b8c7130208374d2200bc895f1386fd68be3027 (patch) | |
| tree | b1ea18351e71fe26f864c5181e6b5dfda6b632a4 | |
| parent | 194bd315be3bc7e176dd7678afa7b3b3e80d8f85 (diff) | |
| download | external_llvm-65b8c7130208374d2200bc895f1386fd68be3027.zip external_llvm-65b8c7130208374d2200bc895f1386fd68be3027.tar.gz external_llvm-65b8c7130208374d2200bc895f1386fd68be3027.tar.bz2 | |
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
| -rw-r--r-- | lib/CodeGen/StrongPHIElimination.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/StrongPHIElimination.cpp b/lib/CodeGen/StrongPHIElimination.cpp index 8bda41d..33bfa57 100644 --- a/lib/CodeGen/StrongPHIElimination.cpp +++ b/lib/CodeGen/StrongPHIElimination.cpp @@ -822,7 +822,7 @@ void StrongPHIElimination::InsertCopies(MachineDomTreeNode* MDTN, LiveIntervals::getUseIndex(LI.getInstructionIndex(I))); LiveRange LR (LI.getMBBStartIdx(I->getParent()), - LiveIntervals::getUseIndex(LI.getInstructionIndex(I)), + LiveIntervals::getUseIndex(LI.getInstructionIndex(I))+1, FirstVN); Int.addRange(LR); |
