Changeset 3675 in CLRX


Ignore:
Timestamp:
Jan 28, 2018, 8:53:35 PM (2 years ago)
Author:
matszpk
Message:

CLRadeonExtender: Workaround for insanely slow compilation of the AsmRegAlloc? test under Clang 3.8.

File:
1 edited

Legend:

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

    r3655 r3675  
    688688};
    689689
     690struct TestSingleVReg2
     691{
     692    const char* name;
     693    uint16_t index;
     694};
     695
    690696std::ostream& operator<<(std::ostream& os, const TestSingleVReg& vreg)
    691697{
     
    701707    size_t start, end; // place in code
    702708    Array<NextBlock> nexts; ///< nexts blocks
    703     Array<std::pair<TestSingleVReg, SSAInfo> > ssaInfos;
     709    Array<std::pair<TestSingleVReg2, SSAInfo> > ssaInfos;
    704710    bool haveCalls;
    705711    bool haveReturn;
     
    711717    const char* input;
    712718    Array<CCodeBlock2> codeBlocks;
    713     Array<std::pair<TestSingleVReg, Array<SSAReplace> > > ssaReplaces;
     719    Array<std::pair<TestSingleVReg2, Array<SSAReplace> > > ssaReplaces;
    714720    bool good;
    715721    const char* errorMessages;
     
    36133619            std::string ssaName(ssaOss.str());
    36143620           
     3621            const TestSingleVReg expVReg = { expCBlock.ssaInfos[k].first.name,
     3622                    expCBlock.ssaInfos[k].first.index };
     3623           
    36153624            assertValue("testAsmSSAData", testCaseName + cbname + ssaName + "svreg",
    3616                         expCBlock.ssaInfos[k].first, resSSAInfos[k].first);
     3625                        expVReg, resSSAInfos[k].first);
    36173626            const SSAInfo& expSInfo = expCBlock.ssaInfos[k].second;
    36183627            const SSAInfo& resSInfo = resSSAInfos[k].second;
     
    36633672        const auto& resEntry = resSSAReplaces[j];
    36643673       
     3674        const TestSingleVReg expVReg = { expEntry.first.name, expEntry.first.index };
     3675       
    36653676        assertValue("testAsmSSAData", testCaseName + ssaName + "svreg",
    3666                         expEntry.first, resEntry.first);
     3677                        expVReg, resEntry.first);
    36673678        assertValue("testAsmSSAData", testCaseName + ssaName + "replacesSize",
    36683679                        expEntry.second.size(), resEntry.second.size());
Note: See TracChangeset for help on using the changeset viewer.