summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-06-17 20:13:36 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-06-17 20:13:36 +0000
commitf873ed1b10080bb40ffd0ee3cee909613a447dd9 (patch)
tree151de9000910e8729d7cbf85bed3d2326821e9b8 /llvm
parent1eb69314faafef864bdb5c61d5bb8c23a69efd65 (diff)
downloadbcm5719-llvm-f873ed1b10080bb40ffd0ee3cee909613a447dd9.tar.gz
bcm5719-llvm-f873ed1b10080bb40ffd0ee3cee909613a447dd9.zip
Live-through live interval is [mbb start, mbb end+1].
llvm-svn: 52431
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 196109ba09d..83df4d174a4 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -366,7 +366,7 @@ void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock *mbb,
for (unsigned i = 0, e = vi.AliveBlocks.size(); i != e; ++i) {
if (vi.AliveBlocks[i]) {
LiveRange LR(getMBBStartIdx(i),
- getMBBEndIdx(i),
+ getMBBEndIdx(i)+1, // MBB ends at -1.
ValNo);
interval.addRange(LR);
DOUT << " +" << LR;
OpenPOWER on IntegriCloud