[llvm-commits] [llvm] r56567 - /llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp
Owen Anderson
resistor at mac.com
Wed Sep 24 14:30:39 PDT 2008
Author: resistor
Date: Wed Sep 24 16:30:38 2008
New Revision: 56567
URL: http://llvm.org/viewvc/llvm-project?rev=56567&view=rev
Log:
Fix off-by-one error when updating live intervals.
Modified:
llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp
Modified: llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp?rev=56567&r1=56566&r2=56567&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp (original)
+++ llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp Wed Sep 24 16:30:38 2008
@@ -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);
More information about the llvm-commits
mailing list