Changeset 5453 for icGREP/icgrep-devel


Ignore:
Timestamp:
May 15, 2017, 4:51:05 PM (2 years ago)
Author:
cameron
Message:

PHI node fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/kernel.cpp

    r5452 r5453  
    873873
    874874    kb->SetInsertPoint(tempBlockCheck);
    875     PHINode * itemsProcessedSoFar = kb->CreatePHI(kb->getSizeTy(), 2);
    876     itemsProcessedSoFar->addIncoming(processedItemCount[0], doSegmentOuterLoop);
    877     itemsProcessedSoFar->addIncoming(nowProcessed, multiBlockFinal);
    878    
    879875    haveBlocks = kb->CreateICmpUGT(blocksRemaining, kb->getSize(0));
    880876    kb->CreateCondBr(kb->CreateOr(mIsFinal, haveBlocks), doTempBufferBlock, segmentDone);
     
    905901    // block boundary.
    906902    std::vector<Value *> finalItemCountNeeded;
    907     finalItemCountNeeded.push_back(kb->CreateAdd(itemsProcessedSoFar, tempBlockItems));
     903    finalItemCountNeeded.push_back(kb->CreateAdd(processedItemCount[0], tempBlockItems));
    908904
    909905    for (unsigned i = 0; i < mStreamSetInputBuffers.size(); i++) {
Note: See TracChangeset for help on using the changeset viewer.