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.

llvm-svn: 243971
This commit is contained in:
Tobias Grosser 2015-08-04 11:49:39 +00:00
parent da4690ae12
commit fbe7a2e841
1 changed files with 2 additions and 2 deletions

View File

@ -190,8 +190,6 @@ void registerPollyPasses(llvm::legacy::PassManagerBase &PM) {
if (PollyDetectOnly)
return;
PM.add(polly::createScopInfoPass());
if (PollyViewer)
PM.add(polly::createDOTViewerPass());
if (PollyOnlyViewer)
@ -201,6 +199,8 @@ void registerPollyPasses(llvm::legacy::PassManagerBase &PM) {
if (PollyOnlyPrinter)
PM.add(polly::createDOTOnlyPrinterPass());
PM.add(polly::createScopInfoPass());
if (ImportJScop)
PM.add(polly::createJSONImporterPass());