Changeset 3883 in CLRX


Ignore:
Timestamp:
Mar 8, 2018, 8:28:35 AM (7 weeks ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmRegAlloc?: Fix for stupid bug in revertRetSSAIdMap (checking rfit whether it is not end).

File:
1 edited

Legend:

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

    r3882 r3883  
    13321332    {
    13331333        auto rfit = retSSAIdMap.find(v.first);
    1334         if (rdata!=nullptr)
    1335         {
    1336             auto csit = rdata->curSSAIdMap.find(v.first);
    1337             if (csit != rdata->curSSAIdMap.end())
    1338             {
    1339                 VectorSet<size_t>& ssaIds = csit->second;
    1340                 for (size_t ssaId: rfit->second.ssaIds)
    1341                     ssaIds.eraseValue(ssaId);
    1342             }
     1334        if (rdata!=nullptr && rfit != retSSAIdMap.end())
     1335        {
     1336            VectorSet<size_t>& ssaIds = rdata->curSSAIdMap[v.first];
     1337            for (size_t ssaId: rfit->second.ssaIds)
     1338                ssaIds.eraseValue(ssaId);
    13431339        }
    13441340       
Note: See TracChangeset for help on using the changeset viewer.