[flang-commits] [flang] [flang] Add flags controlling whether to run the fir alias tags pass (PR #68595)
Andrzej WarzyĆski via flang-commits
flang-commits at lists.llvm.org
Wed Oct 11 07:27:55 PDT 2023
================
@@ -214,6 +214,14 @@ static void parseCodeGenArgs(Fortran::frontend::CodeGenOptions &opts,
clang::driver::options::OPT_fno_loop_versioning, false))
opts.LoopVersioning = 1;
+ opts.AliasAnalysis = false;
+ if (auto *arg =
+ args.getLastArg(clang::driver::options::OPT_falias_analysis,
+ clang::driver::options::OPT_fno_alias_analysis)) {
+ if (arg->getOption().matches(clang::driver::options::OPT_falias_analysis))
+ opts.AliasAnalysis = true;
+ }
----------------
banach-space wrote:
Wouldn't `hasFlag` work here?
https://github.com/llvm/llvm-project/pull/68595
More information about the flang-commits
mailing list