Changeset 3583 in CLRX


Ignore:
Timestamp:
Jan 5, 2018, 4:28:47 PM (9 months ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmRegAlloc?: Small fixes in joinRoutineData.

File:
1 edited

Legend:

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

    r3582 r3583  
    609609        auto ssaInfoIt = prevSSAInfoMap.find(entry.first);
    610610        std::vector<size_t>& destEntry = res.first->second;
    611         if (ssaInfoIt->second.ssaIdChange!=0)
     611        if (ssaInfoIt == prevSSAInfoMap.end() || ssaInfoIt->second.ssaIdChange!=0)
    612612        {
    613613            if (ssaInfoIt != prevSSAInfoMap.end())
     
    862862                 !cblock.haveReturn && !cblock.haveEnd)
    863863        {
    864             if (entry.nextIndex!=0) // if back from call
     864            if (entry.nextIndex!=0) // if back from call (just return from call)
    865865            {
    866866                // expand lastMultiSSAIdMap from all calls
    867867                for (const NextBlock& next: cblock.nexts)
    868                 if (next.isCall)
     868                    if (next.isCall)
    869869                    {
    870870                        auto it = routineMap.find(next.block); // must find
Note: See TracChangeset for help on using the changeset viewer.