Ignore:
Timestamp:
Jun 15, 2017, 12:39:20 PM (2 years ago)
Author:
nmedfort
Message:

Back up check-in. Should have no effect on current programs.

File:
1 edited

Legend:

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

    r5464 r5510  
    1010#include <pablo/optimizers/codemotionpass.h>
    1111#include <pablo/optimizers/distributivepass.h>
     12#include <pablo/optimizers/schedulingprepass.h>
    1213#include <pablo/passes/flattenif.hpp>
    1314#include <pablo/analysis/pabloverifier.hpp>
     
    4041    PabloOptimizationsOptions(cl::values(clEnumVal(DisableSimplification, "Disable Pablo Simplification pass (not recommended)"),
    4142                                         clEnumVal(DisableCodeMotion, "Moves statements into the innermost legal If-scope and moves invariants out of While-loops."),
    42                                          clEnumVal(EnableDistribution, "apply distribution law optimization."),
     43                                         clEnumVal(EnableDistribution, "Apply distribution law optimization."),
     44
     45                                         clEnumVal(EnableSchedulingPrePass, "Pablo Statement Scheduling Pre-Pass"),
    4346                                         clEnumValEnd), cl::cat(PabloOptions));
    4447
     
    7174        DistributivePass::optimize(kernel);
    7275    }
     76    if (PabloOptimizationsOptions.isSet(EnableSchedulingPrePass)) {
     77        SchedulingPrePass::optimize(kernel);
     78    }
    7379    if (DebugOptions.isSet(ShowOptimizedPablo)) {
    7480        if (PabloOutputFilename.empty()) {
Note: See TracChangeset for help on using the changeset viewer.