Ignore:
Timestamp:
Jan 5, 2017, 3:54:40 PM (3 years ago)
Author:
nmedfort
Message:

Code clean up to enforce proper calling order of KernelBuilder? methods

File:
1 edited

Legend:

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

    r5245 r5246  
    292292    // We always use the 0-th slot for the summary value, even when it's implicit
    293293    mCurrentFrameIndex = mCarryInfo->hasExplicitSummary() ? 1 : 0;
    294 
    295294}
    296295
     
    390389
    391390    // Create a mask to implement circular buffer indexing
    392     Value * indexMask = ConstantInt::get(iBuilder->getSizeTy(), nearest_pow2(entries) - 1);
     391    Value * indexMask = iBuilder->getSize(nearest_pow2(entries) - 1);
    393392    Value * blockIndex = mKernel->getScalarField(mSelf, blockNoScalar);
    394393    Value * carryIndex0 = iBuilder->CreateSub(blockIndex, iBuilder->getSize(entries));
Note: See TracChangeset for help on using the changeset viewer.