diff options
author | Dan Gohman <gohman@apple.com> | 2008-11-26 05:50:31 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-11-26 05:50:31 +0000 |
commit | b3a18e30a64b395be5983241b6172c2f469919c6 (patch) | |
tree | 8c08e4a8ab25b491ef6a330e36ee756ff71fcbbb /lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 6737c597b3fa138df5b8b2f5647ebd42b8e572dc (diff) | |
download | external_llvm-b3a18e30a64b395be5983241b6172c2f469919c6.zip external_llvm-b3a18e30a64b395be5983241b6172c2f469919c6.tar.gz external_llvm-b3a18e30a64b395be5983241b6172c2f469919c6.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60092 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 2a979e1..1de31b9 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/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; |