diff --git a/polly/lib/Support/RegisterPasses.cpp b/polly/lib/Support/RegisterPasses.cpp index 07e4d0494c0a..37af3db75fce 100644 --- a/polly/lib/Support/RegisterPasses.cpp +++ b/polly/lib/Support/RegisterPasses.cpp @@ -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());