aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorTarun Prabhu <tarun@lanl.gov>2025-05-30 08:27:08 -0600
committerGitHub <noreply@github.com>2025-05-30 08:27:08 -0600
commit597340b5b666bdee2887f56c111407b6737cbf34 (patch)
tree35491d2366cb592123ef3f3cdd0e01a48a986a47 /flang/lib/Frontend/CompilerInvocation.cpp
parente00366dcde294b420ae9decf5ac5d85463fd274f (diff)
downloadllvm-597340b5b666bdee2887f56c111407b6737cbf34.zip
llvm-597340b5b666bdee2887f56c111407b6737cbf34.tar.gz
llvm-597340b5b666bdee2887f56c111407b6737cbf34.tar.bz2
Revert "Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler" (#142159)
Reverts llvm/llvm-project#136098
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--flang/lib/Frontend/CompilerInvocation.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp
index 0571aea..90a0029 100644
--- a/flang/lib/Frontend/CompilerInvocation.cpp
+++ b/flang/lib/Frontend/CompilerInvocation.cpp
@@ -30,7 +30,6 @@
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Frontend/Debug/Options.h"
-#include "llvm/Frontend/Driver/CodeGenOptions.h"
#include "llvm/Option/Arg.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Option/OptTable.h"
@@ -453,15 +452,6 @@ static void parseCodeGenArgs(Fortran::frontend::CodeGenOptions &opts,
opts.IsPIE = 1;
}
- if (args.hasArg(clang::driver::options::OPT_fprofile_generate)) {
- opts.setProfileInstr(llvm::driver::ProfileInstrKind::ProfileIRInstr);
- }
-
- if (auto A = args.getLastArg(clang::driver::options::OPT_fprofile_use_EQ)) {
- opts.setProfileUse(llvm::driver::ProfileInstrKind::ProfileIRInstr);
- opts.ProfileInstrumentUsePath = A->getValue();
- }
-
// -mcmodel option.
if (const llvm::opt::Arg *a =
args.getLastArg(clang::driver::options::OPT_mcmodel_EQ)) {