Changeset 3880 in CLRX


Ignore:
Timestamp:
Mar 7, 2018, 10:37:07 PM (4 months ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmRegAlloc?: Small optimization (notFirstReturn).

File:
1 edited

Legend:

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

    r3879 r3880  
    601601    LastSSAIdMap curSSAIdMap;
    602602    LastSSAIdMap lastSSAIdMap;
    603     int notFirstReturn;
    604    
    605     RoutineData() : notFirstReturn(0)
     603    bool notFirstReturn;
     604   
     605    RoutineData() : notFirstReturn(false)
    606606    { }
    607607   
     
    12871287        }
    12881288        // add readbefore if in previous returns if not added yet
    1289         if (rdata.notFirstReturn==2 && beforeFirstAccess)
     1289        if (rdata.notFirstReturn && beforeFirstAccess)
    12901290            rdata.lastSSAIdMap.insert({ ssaEntry.first, { prevSSAId } });
    12911291    }
     
    15041504        {
    15051505            flowStack.push_back({ cblock.nexts[entry.nextIndex].block, 0 });
    1506             if (rdata.notFirstReturn!=0)
    1507                 rdata.notFirstReturn = 2;
    15081506            entry.nextIndex++;
    15091507        }
     
    15261524            flowStack.push_back({ entry.blockIndex+1, 0 });
    15271525            entry.nextIndex++;
    1528             if (rdata.notFirstReturn!=0)
    1529                 rdata.notFirstReturn = 2;
    15301526        }
    15311527        else
     
    15361532                joinLastSSAIdMap(rdata.lastSSAIdMap, rdata.curSSAIdMap);
    15371533                std::cout << "procretend" << std::endl;
    1538                 rdata.notFirstReturn = 1;
     1534                rdata.notFirstReturn = true;
    15391535            }
    15401536           
Note: See TracChangeset for help on using the changeset viewer.