Changeset 4040 in CLRX


Ignore:
Timestamp:
Apr 21, 2018, 12:38:54 PM (4 months ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmRegAlloc?: fixed expand in Liveness class.

File:
1 edited

Legend:

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

    r4039 r4040  
    290290    void expand(size_t k)
    291291    {
    292         auto it = l.lower_bound(k);
     292        auto it = l.upper_bound(k);
    293293        if (it != l.begin())
    294294            --it;
    295         else if (it->first > k) // do nothing
     295        else // do nothing
    296296            return;
    297297        if (it->first <= k && it->second > k)
Note: See TracChangeset for help on using the changeset viewer.