Skip to content

Commit 056f744

Browse files
[flang] Removed old option -fdebug-dump-pre-fir (#168008)
This option has long been replaced by `-fc1 -fdebug-dump-pft`. Removed the old option and updated one test that still used it.
1 parent 746e5d0 commit 056f744

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

flang/lib/Lower/Bridge.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@
8686

8787
#define DEBUG_TYPE "flang-lower-bridge"
8888

89-
static llvm::cl::opt<bool> dumpBeforeFir(
90-
"fdebug-dump-pre-fir", llvm::cl::init(false),
91-
llvm::cl::desc("dump the Pre-FIR tree prior to FIR generation"));
92-
9389
static llvm::cl::opt<bool> forceLoopToExecuteOnce(
9490
"always-execute-loop-body", llvm::cl::init(false),
9591
llvm::cl::desc("force the body of a loop to execute at least once"));
@@ -7027,8 +7023,6 @@ void Fortran::lower::LoweringBridge::lower(
70277023
const Fortran::semantics::SemanticsContext &semanticsContext) {
70287024
std::unique_ptr<Fortran::lower::pft::Program> pft =
70297025
Fortran::lower::createPFT(prg, semanticsContext);
7030-
if (dumpBeforeFir)
7031-
Fortran::lower::dumpPFT(llvm::errs(), *pft);
70327026
FirConverter converter{*this};
70337027
converter.run(*pft);
70347028
}

flang/test/Lower/ifconvert.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -fdebug-dump-pre-fir %s 2>&1 | FileCheck %s
1+
! RUN: %flang_fc1 -fdebug-dump-pft %s 2>&1 | FileCheck %s
22

33
! Note: PFT dump output is fairly stable, including node indexes and
44
! annotations, so all output is CHECKed.

0 commit comments

Comments
 (0)