Changeset 3792 in CLRX


Ignore:
Timestamp:
Feb 14, 2018, 3:38:35 PM (14 months ago)
Author:
matszpk
Message:

CLRadeonExtender: Asm: Small optimization.

File:
1 edited

Legend:

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

    r3791 r3792  
    14081408void Assembler::cloneSymEntryIfNeeded(AsmSymbolEntry& symEntry)
    14091409{
    1410     if (!symEntry.second.base && !symEntry.second.regRange &&
     1410    if (!symEntry.second.occurrencesInExprs.empty() &&
     1411        !symEntry.second.base && !symEntry.second.regRange &&
    14111412        ((symEntry.second.expression != nullptr && (
    14121413          // if symbol have unevaluated expression but we clone symbol only if
     
    14161417                  symEntry.second.expression->getSymOccursNum()!=0)) ||
    14171418          // to resolve relocations (no expression but no have hasValue
    1418          (!resolvingRelocs &&
    1419              symEntry.second.expression == nullptr && !symEntry.second.hasValue &&
    1420              !isResolvableSection(symEntry.second.sectionId))) &&
    1421         !symEntry.second.occurrencesInExprs.empty())
     1419         (!resolvingRelocs && symEntry.second.expression == nullptr &&
     1420          !symEntry.second.hasValue && !isResolvableSection(symEntry.second.sectionId))))
    14221421    {   // create new symbol with this expression
    14231422        std::unique_ptr<AsmSymbolEntry> newSymEntry;
Note: See TracChangeset for help on using the changeset viewer.