[clang] [flang] [llvm] Introduce -fexperimental-loop-fuse to clang and flang (PR #142686)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 7 09:26:05 PDT 2025
================
@@ -1671,6 +1671,11 @@ void CompilerInvocationBase::GenerateCodeGenArgs(const CodeGenOptions &Opts,
else
GenerateArg(Consumer, OPT_fno_loop_interchange);
+ if (Opts.FuseLoops)
+ GenerateArg(Consumer, OPT_fexperimental_loop_fusion);
+ else
----------------
MaskRay wrote:
If OPT_fno_experimental_loop_fusion is not a cc1 option, the else branch will not be needed.
https://github.com/llvm/llvm-project/pull/142686
More information about the llvm-commits
mailing list