Ignore:
Timestamp:
Oct 31, 2014, 8:11:20 PM (5 years ago)
Author:
nmedfort
Message:

Made boost optional but base compilation cost is worse without it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/pablo_compiler.cpp

    r4281 r4282  
    235235    #endif
    236236
     237
     238
    237239    //Create a verifier.  The verifier will print an error message if our module is malformed in any way.
    238240    #ifdef USE_LLVM_3_5
     
    253255#ifdef USE_LLVM_3_4
    254256    fpm.add(new DataLayout(*mExecutionEngine->getDataLayout()));
     257#endif
     258#ifndef USE_BOOST
     259    fpm.add(createCorrelatedValuePropagationPass());
     260    fpm.add(createEarlyCSEPass());
     261    fpm.add(createInstructionCombiningPass());    //Simple peephole optimizations and bit-twiddling.
     262    fpm.add(createReassociatePass());             //Reassociate expressions.
     263    fpm.add(createGVNPass());                     //Eliminate common subexpressions.
    255264#endif
    256265    fpm.doInitialization();
Note: See TracChangeset for help on using the changeset viewer.