Changeset 5645 for icGREP/icgrep-devel


Ignore:
Timestamp:
Sep 20, 2017, 11:11:47 AM (21 months ago)
Author:
cameron
Message:

Revert inadvertent change

File:
1 edited

Legend:

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

    r5644 r5645  
    77#include "lz4_bytestream_decoder.h"
    88#include <kernels/kernel_builder.h>
    9 #include "lz4_helper.h"
    109
    1110using namespace llvm;
     
    1716            offset
    1817            );
     18}
     19
     20Value * selectMin(const std::unique_ptr<KernelBuilder> & iBuilder, Value * a, Value * b) {
     21    return iBuilder->CreateSelect(iBuilder->CreateICmpULT(a, b), a, b);
    1922}
    2023
     
    7578            outputBufferBasePtr,
    7679            iBuilder->CreateGEP(inputBufferBasePtr, iBuilder->CreateAdd(literalStart, copyLength1)),
    77             iBuilder->CreateSub(literalLength, copyLength1), 8);        // Buffer start is aligned.
     80            iBuilder->CreateSub(literalLength, copyLength1), 1); // Buffer start is aligned.
     81    // NOTE: Test case reported non-8-byte alignment
    7882    outputItems = iBuilder->CreateAdd(outputItems, literalLength);
    7983
Note: See TracChangeset for help on using the changeset viewer.