[llvm-commits] [polly] r142772 - in /polly/trunk: lib/RegisterPasses.cpp www/example_load_Polly_into_clang.html

Tobias Grosser grosser at fim.uni-passau.de
Sun Oct 23 13:59:32 PDT 2011


Author: grosser
Date: Sun Oct 23 15:59:32 2011
New Revision: 142772

URL: http://llvm.org/viewvc/llvm-project?rev=142772&view=rev
Log:
Allow to disable the schedule optimizer

The option -polly-no-optimizer disables the scheduling optimizer.

Modified:
    polly/trunk/lib/RegisterPasses.cpp
    polly/trunk/www/example_load_Polly_into_clang.html

Modified: polly/trunk/lib/RegisterPasses.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/RegisterPasses.cpp?rev=142772&r1=142771&r2=142772&view=diff
==============================================================================
--- polly/trunk/lib/RegisterPasses.cpp (original)
+++ polly/trunk/lib/RegisterPasses.cpp Sun Oct 23 15:59:32 2011
@@ -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 @@
   if (PollyOnlyPrinter)
     PM.add(polly::createDOTOnlyPrinterPass());
 
-  PM.add(polly::createIslScheduleOptimizerPass());
+  if (!DisableScheduler)
+    PM.add(polly::createIslScheduleOptimizerPass());
 
   if (!DisableCodegen)
     PM.add(polly::createCodeGenerationPass());

Modified: polly/trunk/www/example_load_Polly_into_clang.html
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/www/example_load_Polly_into_clang.html?rev=142772&r1=142771&r2=142772&view=diff
==============================================================================
--- polly/trunk/www/example_load_Polly_into_clang.html (original)
+++ polly/trunk/www/example_load_Polly_into_clang.html Sun Oct 23 15:59:32 2011
@@ -62,6 +62,12 @@
 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>





More information about the llvm-commits mailing list