mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
Moderate head scratching reveals that this conditional is not needed. If
i->start == j->start, then certainly i->end > j->start. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17943 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -83,14 +83,10 @@ bool LiveInterval::overlapsFrom(const LiveInterval& other,
|
|||||||
}
|
}
|
||||||
|
|
||||||
while (i != ie && j != je) {
|
while (i != ie && j != je) {
|
||||||
if (i->start == j->start)
|
|
||||||
return true;
|
|
||||||
|
|
||||||
if (i->start > j->start) {
|
if (i->start > j->start) {
|
||||||
std::swap(i, j);
|
std::swap(i, j);
|
||||||
std::swap(ie, je);
|
std::swap(ie, je);
|
||||||
}
|
}
|
||||||
assert(i->start < j->start);
|
|
||||||
|
|
||||||
if (i->end > j->start)
|
if (i->end > j->start)
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user