[flang-commits] [flang] [clang] [flang] Enable alias tags pass by default (PR #73111)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Wed Nov 22 13:34:01 PST 2023
================
@@ -142,6 +142,26 @@ void Flang::addCodegenOptions(const ArgList &Args,
if (shouldLoopVersion(Args))
CmdArgs.push_back("-fversion-loops-for-stride");
+ Arg *aliasAnalysis = Args.getLastArg(options::OPT_falias_analysis,
+ options::OPT_fno_alias_analysis);
+ Arg *optLevel =
+ Args.getLastArg(options::OPT_Ofast, options::OPT_O, options::OPT_O4);
----------------
tblah wrote:
It would be disabled unless `-falias-analysis` is specified directly.
What I am trying to accomplish here is for the frontend driver to usually just do what you expect, without having to remember to use this option. But I want there to still be a separate flag available to override this default behavior.
https://github.com/llvm/llvm-project/pull/73111
More information about the flang-commits
mailing list