diff options
author | Madhur Amilkanthwar <madhura@nvidia.com> | 2025-09-16 16:43:37 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-16 16:43:37 +0530 |
commit | a134b0621798d0c07a6c5ea23d8e8388b04c26ad (patch) | |
tree | 79af25146e38b73d4c2206bc8c643ebdcbb08700 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | c5474cdc27d99f6ebab1d501f93ec1aa6dc8235b (diff) | |
download | llvm-a134b0621798d0c07a6c5ea23d8e8388b04c26ad.zip llvm-a134b0621798d0c07a6c5ea23d8e8388b04c26ad.tar.gz llvm-a134b0621798d0c07a6c5ea23d8e8388b04c26ad.tar.bz2 |
Reapply "Introduce -fexperimental-loop-fusion to clang and flang (#158844)
This PR is a reapplication of
https://github.com/llvm/llvm-project/pull/142686
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | flang/lib/Frontend/CompilerInvocation.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp index c7dbfc4..a00e568 100644 --- a/flang/lib/Frontend/CompilerInvocation.cpp +++ b/flang/lib/Frontend/CompilerInvocation.cpp @@ -280,6 +280,9 @@ static void parseCodeGenArgs(Fortran::frontend::CodeGenOptions &opts, if (args.getLastArg(clang::driver::options::OPT_floop_interchange)) opts.InterchangeLoops = 1; + if (args.getLastArg(clang::driver::options::OPT_fexperimental_loop_fusion)) + opts.FuseLoops = 1; + if (args.getLastArg(clang::driver::options::OPT_vectorize_loops)) opts.VectorizeLoop = 1; |