aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveIntervalAnalysis.cpp
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
commitf26e8557deccd5fb28b56548ca5f7ea25aee31c6 (patch)
tree83bc19d29379ec08346477721b7dfb8a173cb77c /lib/CodeGen/LiveIntervalAnalysis.cpp
parent739583be564b487ac8581b9261447f0fbd591778 (diff)
Live-through live interval is [mbb start, mbb end+1].
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52431 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index 196109ba09..83df4d174a 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/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;