Ignore:
Timestamp:
May 16, 2017, 4:13:53 PM (2 years ago)
Author:
nmedfort
Message:

Bug fix check in for DumpTrace?, compilation of DoBlock? / DoFinalBlock? functions. Pablo CodeMotionPass? optimized and enabled by default.

File:
1 edited

Legend:

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

    r5436 r5454  
    5252static cl::bits<PabloCompilationFlags>
    5353    PabloOptimizationsOptions(cl::values(clEnumVal(DisableSimplification, "Disable Pablo Simplification pass (not recommended)"),
    54                                          clEnumVal(EnableCodeMotion, "Moves statements into the innermost legal If-scope and moves invariants out of While-loops."),
     54                                         clEnumVal(DisableCodeMotion, "Moves statements into the innermost legal If-scope and moves invariants out of While-loops."),
    5555#ifdef ENABLE_MULTIPLEXING
    5656                                         clEnumVal(EnableMultiplexing, "combine Advances whose inputs are mutual exclusive into the fewest number of advances possible (expensive)."),
     
    195195    const timestamp_t optimization_start = read_cycle_counter();
    196196#endif
    197     if (!PabloOptimizationsOptions.isSet(DisableSimplification)) {
     197    if (LLVM_LIKELY(!PabloOptimizationsOptions.isSet(DisableSimplification))) {
    198198        READ_CYCLE_COUNTER(simplification_start);
    199199        Simplifier::optimize(kernel);
     
    230230    }
    231231#endif
    232     if (PabloOptimizationsOptions.isSet(EnableCodeMotion)) {
     232    if (LLVM_LIKELY(!PabloOptimizationsOptions.isSet(DisableCodeMotion))) {
    233233        READ_CYCLE_COUNTER(sinking_start);
    234234        CodeMotionPass::optimize(kernel);
Note: See TracChangeset for help on using the changeset viewer.