Ignore:
Timestamp:
May 21, 2018, 9:49:22 PM (13 months ago)
Author:
cameron
Message:

Various small fixes

File:
1 edited

Legend:

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

    r5975 r6055  
    5959    if (LLVM_LIKELY(codegen::BlockSize == 0)) {  // No BlockSize override: use processor SIMD width
    6060
     61#if LLVM_VERSION_INTEGER >= LLVM_VERSION_CODE(3, 8, 0)
    6162        if (hostCPUFeatures.hasAVX512F) codegen::BlockSize = 512;
    62         else if (hostCPUFeatures.hasAVX2) codegen::BlockSize = 256;
     63        else
     64#endif
     65        if (hostCPUFeatures.hasAVX2) codegen::BlockSize = 256;
    6366        else codegen::BlockSize = 128;
    6467    }
     
    6669        llvm::report_fatal_error("BlockSize must be a power of 2 and >=64");
    6770    }
     71#if LLVM_VERSION_INTEGER >= LLVM_VERSION_CODE(3, 8, 0)
    6872    if (codegen::BlockSize >= 512) {
    6973        // AVX512BW builder can only be used for BlockSize multiples of 512
     
    7276        }
    7377    }
     78#endif
    7479    if (codegen::BlockSize >= 256) {
    7580        // AVX2 or AVX builders can only be used for BlockSize multiples of 256
Note: See TracChangeset for help on using the changeset viewer.