Changeset 4041 in CLRX


Ignore:
Timestamp:
Apr 21, 2018, 1:28:44 PM (4 weeks ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmRegAlloc?: fixed expand in Liveness class: do not back to previous region if k in current region (always try to expand current region).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/amdasm/AsmRegAlloc.h

    r4040 r4041  
    295295        else // do nothing
    296296            return;
    297         if (it->first <= k && it->second > k)
    298         {
    299             // we need expand previous region to this
    300             if (it==l.begin())
    301                 return;
    302             --it;
    303         }
    304         it->second = k+1;
     297        // try expand, lower new bound, then use older
     298        it->second = std::max(it->second, k+1);
    305299        join(it);
    306300    }
Note: See TracChangeset for help on using the changeset viewer.