summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2011-10-23 20:59:32 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2011-10-23 20:59:32 +0000
commit12dcc646d57b52b09b0ee6ab3c9755deb800c59d (patch)
tree6a4c2d69e9457cb458cd64de67d6b953920e3dc7
parent22636bf4989e222524d939d9a2927885e57043a2 (diff)
downloadbcm5719-llvm-12dcc646d57b52b09b0ee6ab3c9755deb800c59d.tar.gz
bcm5719-llvm-12dcc646d57b52b09b0ee6ab3c9755deb800c59d.zip
Allow to disable the schedule optimizer
The option -polly-no-optimizer disables the scheduling optimizer. llvm-svn: 142772
-rw-r--r--polly/lib/RegisterPasses.cpp7
-rw-r--r--polly/www/example_load_Polly_into_clang.html6
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>
OpenPOWER on IntegriCloud