diff --git a/flang/lib/Lower/Bridge.cpp b/flang/lib/Lower/Bridge.cpp index 5bfcff310c232..cb324892a06f0 100644 --- a/flang/lib/Lower/Bridge.cpp +++ b/flang/lib/Lower/Bridge.cpp @@ -86,10 +86,6 @@ #define DEBUG_TYPE "flang-lower-bridge" -static llvm::cl::opt dumpBeforeFir( - "fdebug-dump-pre-fir", llvm::cl::init(false), - llvm::cl::desc("dump the Pre-FIR tree prior to FIR generation")); - static llvm::cl::opt forceLoopToExecuteOnce( "always-execute-loop-body", llvm::cl::init(false), llvm::cl::desc("force the body of a loop to execute at least once")); @@ -7027,8 +7023,6 @@ void Fortran::lower::LoweringBridge::lower( const Fortran::semantics::SemanticsContext &semanticsContext) { std::unique_ptr pft = Fortran::lower::createPFT(prg, semanticsContext); - if (dumpBeforeFir) - Fortran::lower::dumpPFT(llvm::errs(), *pft); FirConverter converter{*this}; converter.run(*pft); } diff --git a/flang/test/Lower/ifconvert.f90 b/flang/test/Lower/ifconvert.f90 index 50ced6b42addf..cbd1e79bd0114 100644 --- a/flang/test/Lower/ifconvert.f90 +++ b/flang/test/Lower/ifconvert.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -fdebug-dump-pre-fir %s 2>&1 | FileCheck %s +! RUN: %flang_fc1 -fdebug-dump-pft %s 2>&1 | FileCheck %s ! Note: PFT dump output is fairly stable, including node indexes and ! annotations, so all output is CHECKed.