commit | f835f8407196812c76ec5c20aa6a03d1249e8baa | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Wed Sep 24 21:30:38 2008 +0000 |
committer | Owen Anderson <resistor@mac.com> | Wed Sep 24 21:30:38 2008 +0000 |
tree | b1ea18351e71fe26f864c5181e6b5dfda6b632a4 | |
parent | a789af239ca97bf23a268101f9f6e89d3f164647 [diff] [blame] |
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
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 @@ 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);