aboutsummaryrefslogtreecommitdiffstats
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
commit5ac16ae31a1a7aae5ecc0aa433bd83092f604558 (patch)
tree83bc19d29379ec08346477721b7dfb8a173cb77c
parentf4bacb4eb239be6a6ea7ffa127b92a000fee24cb (diff)
downloadexternal_llvm-5ac16ae31a1a7aae5ecc0aa433bd83092f604558.zip
external_llvm-5ac16ae31a1a7aae5ecc0aa433bd83092f604558.tar.gz
external_llvm-5ac16ae31a1a7aae5ecc0aa433bd83092f604558.tar.bz2
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
-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 196109b..83df4d1 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;