Changeset 4079 in CLRX


Ignore:
Timestamp:
May 4, 2018, 3:54:07 PM (8 months ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmRegAlloc?: Small optimization in reduceSSAIDs routines (remove obsolete statements).

File:
1 edited

Legend:

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

    r4062 r4079  
    685685            // if modified
    686686            // put before removing to revert for other ways after calls
    687             auto res = entry.prevRetSSAIdSets.insert(*rit);
    688             if (res.second)
    689                 res.first->second = rit->second;
     687            entry.prevRetSSAIdSets.insert(*rit);
    690688            // just remove, if some change without read before
    691689            retSSAIdMap.erase(rit);
     
    709707    {
    710708        // put before removing to revert for other ways after calls
    711         auto res = entry.prevRetSSAIdSets.insert(*ssaIdsIt);
    712         if (res.second)
    713             res.first->second = ssaIdsIt->second;
     709        entry.prevRetSSAIdSets.insert(*ssaIdsIt);
    714710        // just remove, if some change without read before
    715711        retSSAIdMap.erase(ssaIdsIt);
     
    790786    {
    791787        // put before removing to revert for other ways after calls
    792         auto res = entry.prevRetSSAIdSets.insert(*ssaIdsIt);
    793         if (res.second)
    794             res.first->second = ssaIdsIt->second;
     788        entry.prevRetSSAIdSets.insert(*ssaIdsIt);
    795789        // just remove, if some change without read before
    796790        retSSAIdMap.erase(ssaIdsIt);
Note: See TracChangeset for help on using the changeset viewer.