[polly] r243971 - Run ScopInfo after the ScopViewers

Tobias Grosser tobias at grosser.es
Tue Aug 4 04:49:40 PDT 2015


Author: grosser
Date: Tue Aug  4 06:49:39 2015
New Revision: 243971

URL: http://llvm.org/viewvc/llvm-project?rev=243971&view=rev
Log:
Run ScopInfo after the ScopViewers

This change is required to see the detected scops even in cases where there is
no other ScopInfo user after the ScopViewers. Before this change, when
running with -polly-optimizer=none -polly-code-generator=none detected scops
have not been shown.

Modified:
    polly/trunk/lib/Support/RegisterPasses.cpp

Modified: polly/trunk/lib/Support/RegisterPasses.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/RegisterPasses.cpp?rev=243971&r1=243970&r2=243971&view=diff
==============================================================================
--- polly/trunk/lib/Support/RegisterPasses.cpp (original)
+++ polly/trunk/lib/Support/RegisterPasses.cpp Tue Aug  4 06:49:39 2015
@@ -190,8 +190,6 @@ void registerPollyPasses(llvm::legacy::P
   if (PollyDetectOnly)
     return;
 
-  PM.add(polly::createScopInfoPass());
-
   if (PollyViewer)
     PM.add(polly::createDOTViewerPass());
   if (PollyOnlyViewer)
@@ -201,6 +199,8 @@ void registerPollyPasses(llvm::legacy::P
   if (PollyOnlyPrinter)
     PM.add(polly::createDOTOnlyPrinterPass());
 
+  PM.add(polly::createScopInfoPass());
+
   if (ImportJScop)
     PM.add(polly::createJSONImporterPass());
 





More information about the llvm-commits mailing list