aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
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
commita0c032f9b2eeae3a436850eaca54de4c6a5f23b6 (patch)
tree0d96f85f06dc38b34f04df76caffd88e2d292ba3 /lib/CodeGen
parent68d4d1d49c813d10047ad116e897a17d67112c10 (diff)
downloadexternal_llvm-a0c032f9b2eeae3a436850eaca54de4c6a5f23b6.zip
external_llvm-a0c032f9b2eeae3a436850eaca54de4c6a5f23b6.tar.gz
external_llvm-a0c032f9b2eeae3a436850eaca54de4c6a5f23b6.tar.bz2
Don't decrement the BB remap when we don't need to.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54173 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/LiveIntervalAnalysis.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp
index fde27b0..02c1191 100644
--- a/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/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 {