Ignore:
Timestamp:
Jul 15, 2015, 6:20:38 PM (4 years ago)
Author:
cameron
Message:

Simplify/unify conditional creation of explicit carry summary code and summary phi nodes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/pablo_compiler.cpp

    r4674 r4676  
    462462    --mIfDepth;
    463463    if (mCarryManager->blockHasCarries()) {
    464         mCarryManager->generateCarryOutSummaryCode();
     464        mCarryManager->generateCarryOutSummaryCodeIfNeeded();
    465465    }
    466466    BasicBlock * ifBodyFinalBlock = mBuilder->GetInsertBlock();
     
    478478    }
    479479    // Create the phi Node for the summary variable, if needed.
    480     if (mCarryManager->summaryNeededInParentBlock()) {
    481         mCarryManager->addSummaryPhi(ifEntryBlock, ifBodyFinalBlock);
    482     }
     480    mCarryManager->addSummaryPhiIfNeeded(ifEntryBlock, ifBodyFinalBlock);
    483481    mCarryManager->leaveScope();
    484482}
Note: See TracChangeset for help on using the changeset viewer.