Changeset 3919 in CLRX


Ignore:
Timestamp:
Mar 21, 2018, 9:13:50 PM (5 weeks ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmRegAlloc?: Add needed condition before applyCallsToStackVarMap.

File:
1 edited

Legend:

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

    r3918 r3919  
    974974                const CodeBlock& cblock = codeBlocks[it->second.first];
    975975               
    976                 applyCallToStackVarMap(cblock, routineMap, stackVarMap, -1, -1);
     976                const FlowStackEntry2& entry = *(prevFlowStack.begin()+pfStartIndex-1);
     977                if (entry.nextIndex > cblock.nexts.size())
     978                    applyCallToStackVarMap(cblock, routineMap, stackVarMap, -1, -1);
    977979            }
    978980        }
Note: See TracChangeset for help on using the changeset viewer.