Changeset 4089 in CLRX


Ignore:
Timestamp:
May 6, 2018, 9:18:51 AM (2 weeks ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmRegAlloc?: revert changes in Assembler.h. Add TODO about handling livenesses between routine's calls.

Location:
CLRadeonExtender/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/CLRX/amdasm/Assembler.h

    r4088 r4089  
    343343    typedef Array<std::pair<size_t, size_t> > OutLiveness;
    344344   
    345     // first - orig ssaid, second - dest ssaid
     345     // first - orig ssaid, second - dest ssaid
    346346    typedef std::pair<size_t, size_t> SSAReplace;
    347347    typedef std::unordered_map<AsmSingleVReg, VectorSet<SSAReplace> > SSAReplacesMap;
     
    355355        VectorSet<size_t> nextVidxes;
    356356    };
    357    
    358     /* call place and routine dep will be used while join dependency between
    359      * svregs inside routines */
    360     // call place
    361     struct CallPlace
    362     {
    363         std::vector<size_t> routines;
    364         std::vector<size_t> vidxes; // SSAs indexes used in this call place
    365     };
    366     // routine dependency entry
    367     struct RoutineDep
    368     {
    369         std::vector<CallPlace> callPlaces;
    370         std::vector<size_t> vidxes; // SSAs indexes used by routine (no recursion)
    371     };
    372357private:
    373358    Assembler& assembler;
     
    379364    size_t graphVregsCounts[MAX_REGTYPES_NUM];
    380365    VarIndexMap vregIndexMaps[MAX_REGTYPES_NUM]; // indices to igraph for 2 reg types
    381     std::vector<RoutineDep> routineDeps;
    382366    InterGraph interGraphs[MAX_REGTYPES_NUM]; // for 2 register
    383367    Array<cxuint> graphColorMaps[MAX_REGTYPES_NUM];
  • CLRadeonExtender/trunk/amdasm/AsmRegAlloc.cpp

    r4086 r4089  
    12331233        }
    12341234}
     1235
     1236/* TODO: handling livenesses between routine call:
     1237 *   for any routine call in call point:
     1238 *     add extra liveness point which will be added to liveness of the vars used between
     1239 *     call point and to liveness of the vars used inside routine
     1240 */
    12351241
    12361242void AsmRegAllocator::createLivenesses(ISAUsageHandler& usageHandler)
Note: See TracChangeset for help on using the changeset viewer.