Changeset 3940 in CLRX


Ignore:
Timestamp:
Mar 26, 2018, 2:16:54 PM (4 months ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmRegAlloc?: Update.

File:
1 edited

Legend:

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

    r3939 r3940  
    20602060        }
    20612061    }
     2062   
     2063    RoutineData& prevRdata = routineMapSP.find(recurBlock)->second;
     2064    createRoutineData(codeBlocks, curSSAIdMap, loopBlocks, cblocksToCache,
     2065                        subroutinesCache, routineMap, &routineMapSP, prevRdata,
     2066                        recurBlock);
    20622067   
    20632068    // replace routineMap entries by routineMapSP entries
     
    22572262                isRoutineGen[routineBlock] = true;
    22582263            }
     2264            else if (recurseBlocks.find(routineBlock) != recurseBlocks.end())
     2265            {
     2266                // second pass through recursion
     2267                passSecondRecurPass(codeBlocks, curSSAIdMap, cblocksToCache,
     2268                            loopBlocks, recurseBlocks, routineMap, retSSAIdMap,
     2269                            ssaReplacesMap, routineBlock);
     2270                recurseBlocks.erase(routineBlock);
     2271            }
    22592272           
    22602273            callStack.pop_back(); // just return from call
     
    22712284                if (!callBlocks.insert(nextBlock).second)
    22722285                {
     2286                    std::cout << "   -- recursion: " << nextBlock << std::endl;
    22732287                    // if already called (then it is recursion)
    22742288                    recurseBlocks.insert(nextBlock);
    2275                     std::cout << "   -- recursion: " << nextBlock << std::endl;
    2276                     passSecondRecurPass(codeBlocks, curSSAIdMap, cblocksToCache,
    2277                             loopBlocks, recurseBlocks, routineMap, retSSAIdMap,
    2278                             ssaReplacesMap, nextBlock);
    22792289                }
    22802290               
Note: See TracChangeset for help on using the changeset viewer.