summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-11-26 05:50:31 +0000
committerDan Gohman <gohman@apple.com>2008-11-26 05:50:31 +0000
commit3336b1f06b68f3cb9e9c9601b3139160d82f84d8 (patch)
treeff65220b6e60aead864c86a3eb39a1eb90a55c01 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parent21148402d6d3efcb6e358b9eac3e9bfceb5f8be5 (diff)
downloadbcm5719-llvm-3336b1f06b68f3cb9e9c9601b3139160d82f84d8.tar.gz
bcm5719-llvm-3336b1f06b68f3cb9e9c9601b3139160d82f84d8.zip
LiveRanges are represented as half-open ranges. Fix the findLiveInMBBs code
and the LiveInterval.h top-level comment and accordingly. This fixes blocks having spurious live-in registers in boundary cases. llvm-svn: 60092
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-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 2a979e19eb5..1de31b9da2c 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -750,7 +750,7 @@ bool LiveIntervals::findLiveInMBBs(unsigned Start, unsigned End,
bool ResVal = false;
while (I != Idx2MBBMap.end()) {
- if (I->first > End)
+ if (I->first >= End)
break;
MBBs.push_back(I->second);
ResVal = true;
OpenPOWER on IntegriCloud