Changeset 3962 in CLRX


Ignore:
Timestamp:
Apr 3, 2018, 3:15:45 PM (6 months ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmRegAlloc?: fixed initializePrevRetSSAIds (fixed prevSSAId value).

File:
1 edited

Legend:

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

    r3961 r3962  
    15751575}
    15761576
    1577 static void initializePrevRetSSAIds(const CodeBlock& cblock,
     1577static void initializePrevRetSSAIds(
    15781578            const std::unordered_map<AsmSingleVReg, size_t>& curSSAIdMap,
    15791579            const RetSSAIdMap& retSSAIdMap, const RoutineData& rdata,
     
    15891589            res.first->second = rfit->second;
    15901590       
    1591         auto cbsit = cblock.ssaInfoMap.find(v.first);
    15921591        auto csit = curSSAIdMap.find(v.first);
    1593         res.first->second.prevSSAId = cbsit!=cblock.ssaInfoMap.end() ?
    1594                 cbsit->second.ssaIdBefore : (csit!=curSSAIdMap.end() ? csit->second : 0);
     1592        res.first->second.prevSSAId = (csit!=curSSAIdMap.end() ? csit->second : 1);
    15951593    }
    15961594}
     
    19621960                            rblock.pass = 1;
    19631961                        auto it = routineMap.find(rblock); // must find
    1964                         initializePrevRetSSAIds(cblock, curSSAIdMap, retSSAIdMap,
     1962                        initializePrevRetSSAIds(curSSAIdMap, retSSAIdMap,
    19651963                                    it->second, entry);
    19661964                       
     
    23362334                       
    23372335                        auto it = routineMap.find({ next.block, pass }); // must find
    2338                         initializePrevRetSSAIds(cblock, curSSAIdMap, retSSAIdMap,
     2336                        initializePrevRetSSAIds(curSSAIdMap, retSSAIdMap,
    23392337                                    it->second, entry);
    23402338                       
Note: See TracChangeset for help on using the changeset viewer.