Ignore:
Timestamp:
Feb 20, 2016, 11:31:45 AM (3 years ago)
Author:
cameron
Message:

Bug fix; simplification

File:
1 edited

Legend:

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

    r4934 r4935  
    151151
    152152    Value * remaining = iBuilder->CreateZExt(remaining_phi, iBuilder->getIntNTy(128));
    153     Value * EOF_mask = iBuilder->CreateShl(ConstantInt::get(iBuilder->getIntNTy(128), 1), remaining);
    154     EOF_mask = iBuilder->CreateSub(EOF_mask, ConstantInt::get(iBuilder->getIntNTy(128), 1));
    155 
    156     Value * EOF_pos = iBuilder->CreateNeg(iBuilder->CreateOr(iBuilder->CreateShl(iBuilder->CreateNeg(EOF_mask), 1), EOF_mask));
     153    Value * EOF_pos = iBuilder->CreateShl(ConstantInt::get(iBuilder->getIntNTy(128), 1), remaining);
    157154    EOF_pos = iBuilder->CreateBitCast(EOF_pos, mBitBlockType);
    158155
Note: See TracChangeset for help on using the changeset viewer.