Changeset 4848


Ignore:
Timestamp:
Oct 18, 2015, 4:59:50 PM (2 years ago)
Author:
cameron
Message:

Enable AVX-2 by default with BLOCK_SIZE=256

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/toolchain.cpp

    r4825 r4848  
    9191#endif
    9292
    93 static cl::opt<bool> UseAVX2("use-AVX2", cl::init(false), cl::desc("execute with AVX2 instruction set."), cl::cat(cPabloOptimizationsOptions));
     93static cl::opt<bool> DisableAVX2("disable-AVX2", cl::init(false), cl::desc("disable AVX2 instruction set."), cl::cat(cPabloOptimizationsOptions));
    9494
    9595re::RE * regular_expression_passes(const Encoding encoding, re::RE * re_ast)  {
     
    175175    builder.setOptLevel(CodeGenOpt::Level::None);
    176176#if (BLOCK_SIZE == 256)
    177     if(UseAVX2){
     177    if (!DisableAVX2){
    178178            std::vector<std::string> attrs;
    179179            attrs.push_back("avx2");
Note: See TracChangeset for help on using the changeset viewer.