Changeset 4523


Ignore:
Timestamp:
Feb 27, 2015, 8:31:37 AM (4 years ago)
Author:
cameron
Message:

Disable CSE option

File:
1 edited

Legend:

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

    r4522 r4523  
    5151
    5252cl::OptionCategory cPabloOptimizationsOptions("Pablo Optimizations",
    53                                               "These options enable optional Pablo optimization passes. (Disabled by default.)");
     53                                              "These options control Pablo optimization passes.");
    5454
     55static cl::opt<bool> DisablePabloCSE("disable-CSE", cl::init(false),
     56                                      cl::desc("Disable Pablo common subexpression elimination/dead code elimination"),
     57                                      cl::cat(cPabloOptimizationsOptions));
    5558static cl::opt<bool> PabloSinkingPass("sinking", cl::init(false),
    5659                                      cl::desc("Moves all instructions into the innermost legal If-scope so that they are only executed when needed."),
     
    148151
    149152    // Scan through the pablo code and perform DCE and CSE
    150     Simplifier::optimize(main);
     153    if (!DisablePabloCSE) {
     154        Simplifier::optimize(main);
     155    }
    151156    if (PabloSinkingPass) {
    152157        CodeSinking::optimize(main);
Note: See TracChangeset for help on using the changeset viewer.