Changeset 4810


Ignore:
Timestamp:
Sep 30, 2015, 6:06:42 PM (2 years ago)
Author:
cameron
Message:

Unicode name file

Location:
icGREP/icgrep-devel/icgrep/pablo
Files:
2 edited

Legend:

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

    r4797 r4810  
    554554}
    555555   
    556 void CarryManager::addSummaryPhiIfNeeded(BasicBlock * ifEntryBlock, BasicBlock * ifBodyFinalBlock) {
     556void CarryManager::addSummaryPhiIfNeeded(BasicBlock * entryBlock, BasicBlock * bodyFinalBlock) {
    557557    if ((mCarryInfo->getIfDepth() <= 1) || !mCarryInfo->blockHasCarries()){
    558558        // For ifDepth == 1, the parent does not need a summary as it is not itself within an if.
     
    562562    const unsigned carrySummaryIndex = summaryPackIndex();
    563563    PHINode * summary_phi = mBuilder->CreatePHI(mCarryPackType, 2, "summary");
    564     summary_phi->addIncoming(mZeroInitializer, ifEntryBlock);
    565     summary_phi->addIncoming(mCarryOutPack[carrySummaryIndex], ifBodyFinalBlock);
     564    summary_phi->addIncoming(mZeroInitializer, entryBlock);
     565    summary_phi->addIncoming(mCarryOutPack[carrySummaryIndex], bodyFinalBlock);
    566566    mCarryOutPack[carrySummaryIndex] = summary_phi;
    567567}
  • icGREP/icgrep-devel/icgrep/pablo/pablo_compiler.cpp

    r4750 r4810  
    374374    }
    375375    mCarryManager->extendCarryDataPhisAtWhileBodyFinalBlock(whileBodyFinalBlock);
     376    mCarryManager->addSummaryPhiIfNeeded(whileEntryBlock, whileBodyFinalBlock);
    376377
    377378    // Terminate the while loop body with a conditional branch back.
Note: See TracChangeset for help on using the changeset viewer.