diff options
author | Sebastian Pop <spop@nvidia.com> | 2025-09-15 08:18:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-15 18:48:32 +0530 |
commit | 895cda70a95529fd22aac05eee7c34f7624996af (patch) | |
tree | 3421ecf4f6eb253fc82b7089fbbbb7f040963dda /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | e0a33cb599f8614b3d897ad2bd2f9fa8e1acbac5 (diff) | |
download | llvm-895cda70a95529fd22aac05eee7c34f7624996af.zip llvm-895cda70a95529fd22aac05eee7c34f7624996af.tar.gz llvm-895cda70a95529fd22aac05eee7c34f7624996af.tar.bz2 |
Introduce -fexperimental-loop-fuse to clang and flang (#142686)
This patch adds the flag -fexperimental-loop-fuse to the clang and flang
drivers. This is primarily useful for experiments as we envision to
enable the pass one day.
The options are based on the same principles and reason on which we have
`floop-interchange`.
---------
Co-authored-by: Madhur Amilkanthwar <madhura@nvidia.com>
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 6295a58..4f42fbd 100644 --- a/flang/lib/Frontend/CompilerInvocation.cpp +++ b/flang/lib/Frontend/CompilerInvocation.cpp @@ -276,6 +276,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; |