Changeset 3878 in CLRX


Ignore:
Timestamp:
Mar 7, 2018, 7:17:27 PM (9 months ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmRegAlloc?: Small fix.

File:
1 edited

Legend:

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

    r3877 r3878  
    13821382        SimpleCache<size_t, RoutineData>& subroutinesCache,
    13831383        const std::unordered_map<size_t, RoutineData>& routineMap, RoutineData& rdata,
    1384         size_t routineBlock)
     1384        size_t routineBlock, bool noMainLoop = false)
    13851385{
    13861386    std::cout << "--------- createRoutineData ----------------\n";
     
    14221422                    std::cout << "-- subrcache2 for " << entry.blockIndex << std::endl;
    14231423                    createRoutineData(codeBlocks, curSSAIdMap, loopBlocks, subroutToCache,
    1424                             subroutinesCache, routineMap, subrData, entry.blockIndex);
     1424                        subroutinesCache, routineMap, subrData, entry.blockIndex, true);
    14251425                    if (loopBlocks.find(entry.blockIndex) != loopBlocks.end())
    14261426                    {   // leave from loop point
     
    14601460                    }
    14611461            }
    1462             else if (isLoop && routineBlock != entry.blockIndex)
     1462            else if (isLoop && (!noMainLoop || routineBlock != entry.blockIndex))
    14631463            {
    14641464                // handle loops
     
    15491549                std::cout << "-- subrcache for " << entry.blockIndex << std::endl;
    15501550                createRoutineData(codeBlocks, curSSAIdMap, loopBlocks, subroutToCache,
    1551                         subroutinesCache, routineMap, subrData, entry.blockIndex);
     1551                        subroutinesCache, routineMap, subrData, entry.blockIndex, true);
    15521552                if (loopBlocks.find(entry.blockIndex) != loopBlocks.end())
    15531553                {   // leave from loop point
Note: See TracChangeset for help on using the changeset viewer.