Ignore:
Timestamp:
Jan 16, 2017, 9:55:26 AM (9 months ago)
Author:
cameron
Message:

Move responsibility for ProducedItemCount? into doSegment unless overridden

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/editd/editd_cpu_kernel.cpp

    r5260 r5261  
    4141    setScalarField(self, "EOFmask", iBuilder->bitblock_mask_from(remaining));
    4242    iBuilder->CreateCall(doBlockFunction, doBlockArgs);
    43     /* Adjust the produced item count */
    44     Value * produced = getProducedItemCount(self, "ResultStream");
    45     produced = iBuilder->CreateSub(produced, iBuilder->getSize(iBuilder->getStride()));
    46     setProducedItemCount(self, "ResultStream", iBuilder->CreateAdd(produced, remaining));
    4743    iBuilder->CreateRetVoid();
    4844    iBuilder->restoreIP(savePoint);
     
    113109        iBuilder->CreateStore(iBuilder->CreateAnd(e[mPatternLen-1][j], iBuilder->CreateNot(e[mPatternLen-1][j-1])), ptr);
    114110    }
    115 
    116     Value * produced = getProducedItemCount(kernelStuctParam, "ResultStream");
    117     produced = iBuilder->CreateAdd(produced, iBuilder->getSize(iBuilder->getStride()));
    118     setProducedItemCount(kernelStuctParam, "ResultStream", produced);
    119111       
    120112    iBuilder->CreateRetVoid();
     
    132124mEditDistance(dist),
    133125mPatternLen(pattLen){
    134 
     126setDoBlockUpdatesProducedItemCountsAttribute(false);
    135127}
    136128
Note: See TracChangeset for help on using the changeset viewer.