diff options
| -rw-r--r-- | polly/lib/RegisterPasses.cpp | 7 | ||||
| -rw-r--r-- | polly/www/example_load_Polly_into_clang.html | 6 |
2 files changed, 12 insertions, 1 deletions
diff --git a/polly/lib/RegisterPasses.cpp b/polly/lib/RegisterPasses.cpp index f6e5aee1911..7a6d7b8c4ab 100644 --- a/polly/lib/RegisterPasses.cpp +++ b/polly/lib/RegisterPasses.cpp @@ -29,6 +29,10 @@ using namespace llvm; static cl::opt<bool> +DisableScheduler("polly-no-optimizer", + cl::desc("Disable Polly Scheduling Optimizer"), cl::Hidden, + cl::init(false)); +static cl::opt<bool> DisableCodegen("polly-no-codegen", cl::desc("Disable Polly Code Generation"), cl::Hidden, cl::init(false)); @@ -120,7 +124,8 @@ static void registerPollyPasses(const llvm::PassManagerBuilder &Builder, if (PollyOnlyPrinter) PM.add(polly::createDOTOnlyPrinterPass()); - PM.add(polly::createIslScheduleOptimizerPass()); + if (!DisableScheduler) + PM.add(polly::createIslScheduleOptimizerPass()); if (!DisableCodegen) PM.add(polly::createCodeGenerationPass()); diff --git a/polly/www/example_load_Polly_into_clang.html b/polly/www/example_load_Polly_into_clang.html index eb254421c1b..780c223a994 100644 --- a/polly/www/example_load_Polly_into_clang.html +++ b/polly/www/example_load_Polly_into_clang.html @@ -62,6 +62,12 @@ function a dot file that highlights the detected SCoPs. If 'only' is appended at the end of the option, the basic blocks are shown without the statements the contain. +<h3>Disable the polyhedral optimizer</h3> + +Polly automatically runs a polyhedral optimizer to optimize the schedules. To +disable it add the option '-polly-no-optimizer'. + + </div> </body> </html> |

