Changeset 4086 in CLRX


Ignore:
Timestamp:
May 5, 2018, 3:47:29 PM (5 months ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmRegAlloc?: Do not fill up already filled up path of the liveness of the svreg.

File:
1 edited

Legend:

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

    r4081 r4086  
    796796    --pfEnd;
    797797   
     798    Liveness& lv = getLiveness2(vreg, ssaIdNextBefore,
     799            livenesses, vregIndexMaps, regTypesNum, regRanges);
     800   
     801    const CodeBlock& cbLast = codeBlocks[(pfEnd-1)->blockIndex];
     802    if (lv.contain(cbLast.end-1))
     803        // if already filled up
     804        return;
     805   
    798806    // join liveness for this variable ssaId>.
    799807    // only if in previous block previous SSAID is
     
    805813        //continue;
    806814    // fill up previous part
    807     Liveness& lv = getLiveness2(vreg, ssaIdNextBefore,
    808             livenesses, vregIndexMaps, regTypesNum, regRanges);
    809815    auto flit = prevFlowStack.begin() + pfStart;
    810816    {
Note: See TracChangeset for help on using the changeset viewer.