diff options
author | Owen Anderson <resistor@mac.com> | 2008-06-04 00:38:56 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-06-04 00:38:56 +0000 |
commit | c777d9e6fe7a8ac920172289c6735cc088bcc8e9 (patch) | |
tree | e9a9d0f6d39fe60416293f883ceff3620ad61ad4 /llvm/lib | |
parent | a2981a2c7bdb0b121ba74ba7d07994228dafc32c (diff) | |
download | bcm5719-llvm-c777d9e6fe7a8ac920172289c6735cc088bcc8e9.tar.gz bcm5719-llvm-c777d9e6fe7a8ac920172289c6735cc088bcc8e9.zip |
We need to subtract one from this index because live ranges are open at the end.
llvm-svn: 51922
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/StrongPHIElimination.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StrongPHIElimination.cpp b/llvm/lib/CodeGen/StrongPHIElimination.cpp index 449ef38a3a1..ab9538761d2 100644 --- a/llvm/lib/CodeGen/StrongPHIElimination.cpp +++ b/llvm/lib/CodeGen/StrongPHIElimination.cpp @@ -467,7 +467,7 @@ void StrongPHIElimination::processBlock(MachineBasicBlock* MBB) { } else { // Otherwise, add it to the renaming set LiveInterval& I = LI.getOrCreateInterval(SrcReg); - unsigned idx = LI.getMBBEndIdx(P->getOperand(i).getMBB()); + unsigned idx = LI.getMBBEndIdx(P->getOperand(i).getMBB()) - 1; VNInfo* VN = I.getLiveRangeContaining(idx)->valno; assert(VN && "No VNInfo for register?"); |