mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
There is no need to check to see if j overflowed in this loop as we're only
incrementing i. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17944 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1e409bfd2a
commit
9fddc12c9b
@ -82,7 +82,9 @@ bool LiveInterval::overlapsFrom(const LiveInterval& other,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (i != ie && j != je) {
|
if (j == je) return false;
|
||||||
|
|
||||||
|
while (i != ie) {
|
||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user