mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-01 07:11:45 +00:00
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
7e254235e2
commit
2c16205a0d
@ -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…
x
Reference in New Issue
Block a user