forked from OSchip/llvm-project
Moderate head scratching reveals that this conditional is not needed. If
i->start == j->start, then certainly i->end > j->start. llvm-svn: 17943
This commit is contained in:
parent
51f6635e42
commit
6e0c3f44ba
|
@ -83,14 +83,10 @@ bool LiveInterval::overlapsFrom(const LiveInterval& other,
|
|||
}
|
||||
|
||||
while (i != ie && j != je) {
|
||||
if (i->start == j->start)
|
||||
return true;
|
||||
|
||||
if (i->start > j->start) {
|
||||
std::swap(i, j);
|
||||
std::swap(ie, je);
|
||||
}
|
||||
assert(i->start < j->start);
|
||||
|
||||
if (i->end > j->start)
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue