Changeset 4126 in CLRX


Ignore:
Timestamp:
May 9, 2018, 2:00:45 PM (11 days ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmRegAlloc?: use unordered_set for registering visited blocks (in addJoinSecCacheEntry).
Use unordered_set for haveReturns.

File:
1 edited

Legend:

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

    r4125 r4126  
    997997    std::deque<FlowStackEntry3> flowStack;
    998998    flowStack.push_back({ nextBlock, 0 });
    999     CBlockBitPool visited(codeBlocks.size(), false);
     999    std::unordered_set<size_t> visited;
    10001000   
    10011001    SVRegBlockMap alreadyReadMap;
     
    10101010        {
    10111011            // process current block
    1012             if (!visited[entry.blockIndex])
    1013             {
    1014                 visited[entry.blockIndex] = true;
     1012            if (visited.insert(entry.blockIndex).second)
     1013            {
    10151014                ARDOut << "  resolv (cache): " << entry.blockIndex << "\n";
    10161015               
Note: See TracChangeset for help on using the changeset viewer.