summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-07-29 21:15:44 +0000
committerOwen Anderson <resistor@mac.com>2008-07-29 21:15:44 +0000
commit2532e75933e466577f63452ea386a15be9e8cbc6 (patch)
tree48ad99ddf8bf8970e87ba6a37fbbad3c0d447fac /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parentfa4120530ec16b3c3e80c42c3e025c1f4835912f (diff)
downloadbcm5719-llvm-2532e75933e466577f63452ea386a15be9e8cbc6.tar.gz
bcm5719-llvm-2532e75933e466577f63452ea386a15be9e8cbc6.zip
Don't decrement the BB remap when we don't need to.
llvm-svn: 54173
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index fde27b07a8b..02c1191f848 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -144,8 +144,7 @@ void LiveIntervals::computeNumbering() {
std::lower_bound(OldI2MBB.begin(), OldI2MBB.end(), LI->start);
// Take the pair containing the index
std::vector<IdxMBBPair>::const_iterator J =
- ((I != OldI2MBB.end() && I->first > index) ||
- (I == OldI2MBB.end() && OldI2MBB.size()>0)) ? (I-1): I;
+ (I == OldI2MBB.end() && OldI2MBB.size()>0) ? (I-1): I;
LI->start = getMBBStartIdx(J->second);
} else {
@@ -162,8 +161,7 @@ void LiveIntervals::computeNumbering() {
std::lower_bound(OldI2MBB.begin(), OldI2MBB.end(), LI->end);
// Take the pair containing the index
std::vector<IdxMBBPair>::const_iterator J =
- ((I != OldI2MBB.end() && I->first > index) ||
- (I == OldI2MBB.end() && OldI2MBB.size()>0)) ? (I-1): I;
+ (I == OldI2MBB.end() && OldI2MBB.size()>0) ? (I-1): I;
LI->end = getMBBEndIdx(J->second) + 1;
} else {
@@ -186,8 +184,7 @@ void LiveIntervals::computeNumbering() {
std::lower_bound(OldI2MBB.begin(), OldI2MBB.end(), vni->def);
// Take the pair containing the index
std::vector<IdxMBBPair>::const_iterator J =
- ((I != OldI2MBB.end() && I->first > index) ||
- (I == OldI2MBB.end() && OldI2MBB.size()>0)) ? (I-1): I;
+ (I == OldI2MBB.end() && OldI2MBB.size()>0) ? (I-1): I;
vni->def = getMBBStartIdx(J->second);
@@ -205,8 +202,7 @@ void LiveIntervals::computeNumbering() {
std::lower_bound(OldI2MBB.begin(), OldI2MBB.end(), vni->kills[i]);
// Take the pair containing the index
std::vector<IdxMBBPair>::const_iterator J =
- ((I != OldI2MBB.end() && I->first > index) ||
- (I == OldI2MBB.end() && OldI2MBB.size()>0)) ? (I-1): I;
+ (I == OldI2MBB.end() && OldI2MBB.size()>0) ? (I-1): I;
vni->kills[i] = getMBBEndIdx(J->second) + 1;
} else {
OpenPOWER on IntegriCloud