Ignore:
Timestamp:
Jun 7, 2018, 11:59:41 AM (12 months ago)
Author:
xwa163
Message:

fix some warning in lz4 related kernels

File:
1 edited

Legend:

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

    r6055 r6066  
    101101        ConstantInt * const INT64_1 = b->getInt64(1);
    102102
    103         Value * BITBLOCK_0 = b->CreateBitCast(ConstantInt::get(b->getIntNTy(b->getBitBlockWidth()), 0), b->getBitBlockType());
    104 
    105103        // ---- Type
    106104        Type* BITBLOCK_TYPE = b->getBitBlockType();
     
    154152        Value* currentInitM0 = b->CreateLoad(b->CreateGEP(m0MarkerBasePtr, dataBlockIndex));
    155153        vector<Value*> initSourceData = this->loadAllI64BitStreamValues(b, sourceStreamPtr, dataBlockIndex);
    156 
    157         Value* bitBlockIndex = b->CreateUDiv(dataBlockIndex, b->getSize(4));
    158         Value* extractIndex = b->CreateURem(dataBlockIndex, b->getSize(4));
    159154
    160155        BasicBlock* carryBitProcessBlock = b->CreateBasicBlock("CarryBitProcessBlock");
     
    325320        phiSourceDataAccessable->addIncoming(phiTargetMatchOffset, doMatchCopyBlock);
    326321        vector<PHINode*> phiPdepSourceData;
    327         for (int i = 0; i < mNumberOfStreams; i++) {
     322        for (unsigned i = 0; i < mNumberOfStreams; i++) {
    328323            PHINode* v = b->CreatePHI(b->getInt64Ty(), 2);
    329324            v->addIncoming(pdepSourceData[i], doMatchCopyBlock);
     
    334329        // ---- doubleSourceDataBody
    335330        b->SetInsertPoint(doubleSourceDataBody);
    336         for (int i = 0; i < mNumberOfStreams; i++) {
     331        for (unsigned i = 0; i < mNumberOfStreams; i++) {
    337332            PHINode* v = phiPdepSourceData[i];
    338333            Value* newValue = b->CreateOr(v, b->CreateShl(v, phiSourceDataAccessable));
Note: See TracChangeset for help on using the changeset viewer.