Ignore:
Timestamp:
Oct 28, 2017, 7:32:13 PM (20 months ago)
Author:
cameron
Message:

Enabling long indexed-advance by default for AVX2

File:
1 edited

Legend:

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

    r5715 r5716  
    645645        Value * carryPosition = b->getScalarField("IndexedAdvancePosition" + std::to_string(mIndexedLongAdvanceIndex));
    646646        Value * carryBlockEndPos = b->CreateAdd(carryPosition, blockWidth_1);
    647         unsigned carry_blocks = nearest_pow2(20+ceil_udiv(shiftAmount, b->getBitBlockWidth()));
     647        unsigned carry_blocks = nearest_pow2(1+ceil_udiv(shiftAmount, b->getBitBlockWidth()));
    648648        Constant * carryQueueBlocks = b->getSize(carry_blocks);
    649649        Value * carryBlock = b->CreateTrunc(b->CreateURem(b->CreateUDiv(carryPosition, blockWidth), carryQueueBlocks), b->getInt32Ty());
     
    988988                const auto blockWidth = b->getBitBlockWidth();
    989989                const auto blocks = ceil_udiv(amount, blockWidth);
    990                 type = ArrayType::get(blockTy, nearest_pow2(blocks + (isa<IndexedAdvance>(stmt) ? 20:0) + ((loopDepth != 0) ? 1 : 0)));
     990                type = ArrayType::get(blockTy, nearest_pow2(blocks + (isa<IndexedAdvance>(stmt) ? 1:0) + ((loopDepth != 0) ? 1 : 0)));
    991991                if (LLVM_UNLIKELY(ifDepth > 0 && blocks != 1)) {
    992992                    const auto summarySize = ceil_udiv(blocks, blockWidth);
Note: See TracChangeset for help on using the changeset viewer.