forked from OSchip/llvm-project
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:
parent
da4690ae12
commit
fbe7a2e841
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue