Changeset 4164 in CLRX


Ignore:
Timestamp:
May 14, 2018, 9:32:54 PM (3 months ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmRegAlloc?: Comment code.

File:
1 edited

Legend:

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

    r4163 r4164  
    13771377        {
    13781378            ARDOut << " ret: " << entry.blockIndex << "\n";
     1379            // check whether doNotCreateRoutine if yes then skip and only pop call stack
    13791380            if (!doNotCreateRoutine)
    13801381            {
     
    13821383            auto res = routineMap.insert({ routineBlock, { } });
    13831384           
     1385            // while second pass in recursion: the routine's insertion was happened
     1386            // later in first pass (after return from second pass)
     1387            // we check whether second pass happened for this routine
    13841388            if (res.second || res.first->second.inSecondPass)
    13851389            {
    1386                 if (callStack.back().routineBlock.pass==1)
    1387                     res.first->second.inSecondPass = true;
    1388                 else
    1389                     res.first->second.inSecondPass = false;
     1390                res.first->second.inSecondPass = callStack.back().routineBlock.pass==1;
     1391               
    13901392                auto varRes = vidxRoutineMap.insert({ routineBlock, VIdxSetEntry{} });
    13911393                createRoutineDataLv(codeBlocks, routineMap, recurseBlocks, vidxRoutineMap,
     
    14181420        if (entry.nextIndex < cblock.nexts.size())
    14191421        {
    1420             //bool isCall = false;
    14211422            BlockIndex nextBlock = cblock.nexts[entry.nextIndex].block;
    14221423            nextBlock.pass = entry.blockIndex.pass;
     
    14251426                callStack.push_back({ entry.blockIndex,
    14261427                            entry.nextIndex, nextBlock });
    1427                 //isCall = true;
     1428               
    14281429                if (!callBlocks.insert(nextBlock).second)
    14291430                {
     
    14361437                    else if (entry.blockIndex.pass==1)
    14371438                    {
     1439                        /// mark that is routine call to skip
    14381440                        doNotCreateRoutine = true;
    14391441                        entry.nextIndex++;
     
    14441446                    recurseBlocks.find(nextBlock.index) != recurseBlocks.end())
    14451447                {
     1448                    /// mark that is routine call to skip
    14461449                    doNotCreateRoutine = true;
    14471450                    entry.nextIndex++;
Note: See TracChangeset for help on using the changeset viewer.