Ignore:
Timestamp:
Mar 21, 2017, 11:55:00 AM (2 years ago)
Author:
xuedongx
Message:

Add1 processing rate; pablo Count only up to EOFbit

File:
1 edited

Legend:

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

    r5368 r5370  
    478478            value = iBuilder->simd_and(compileExpression(e->getExpr()), EOFbit);
    479479        } else if (const Count * c = dyn_cast<Count>(stmt)) {
    480             Value * const to_count = compileExpression(c->getExpr());
     480            Value * EOFbit = mKernel->getScalarField("EOFbit");
     481            Value * EOFmask = mKernel->getScalarField("EOFmask");
     482            Value * const to_count = iBuilder->simd_and(iBuilder->simd_or(iBuilder->simd_not(EOFmask), EOFbit), compileExpression(c->getExpr()));
    481483            const unsigned counterSize = iBuilder->getSizeTy()->getBitWidth();
    482484            const auto f = mAccumulator.find(c);
Note: See TracChangeset for help on using the changeset viewer.