Ignore:
Timestamp:
Sep 7, 2017, 4:56:56 PM (23 months ago)
Author:
nmedfort
Message:

Partial check-in for avoidance of compiling Pablo/LLVM code to determine the Kernel struct type when using a cached object. Inactive RE alternation minimization check in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IR_Gen/idisa_nvptx_builder.cpp

    r5486 r5630  
    210210  CreateCall(barrierFunc);
    211211
    212   Value * carryOffsetPtr = nullptr;
    213212  Value * carryVal = carryInitVal;
    214   Value * bubbleOffsetPtr = nullptr;
    215213  Value * bubbleVal = bubbleInitVal;
    216214
    217215  for (unsigned offset = groupThreads/2; offset>0; offset=offset>>1){
    218     carryOffsetPtr = CreateGEP(carry, {getInt32(0), CreateXor(id, getInt32(offset))});
     216    Value * carryOffsetPtr = CreateGEP(carry, {getInt32(0), CreateXor(id, getInt32(offset))});
    219217    carryVal = CreateOr(carryVal, CreateLoad(carryOffsetPtr));
    220218    CreateStore(carryVal, carryPtr);
    221     bubbleOffsetPtr = CreateGEP(bubble, {getInt32(0), CreateXor(id, getInt32(offset))});
     219    Value * bubbleOffsetPtr = CreateGEP(bubble, {getInt32(0), CreateXor(id, getInt32(offset))});
    222220    bubbleVal = CreateOr(bubbleVal, CreateLoad(bubbleOffsetPtr));
    223221    CreateStore(bubbleVal, bubblePtr);
Note: See TracChangeset for help on using the changeset viewer.