[all-commits] [llvm/llvm-project] 41cece: [flang] Add -f[no-]vectorize flags (#119718)
David Truby via All-commits
all-commits at lists.llvm.org
Thu Feb 20 05:59:51 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 41cece8c86399dd1ffcb6b7a8b50c10083fe5a40
https://github.com/llvm/llvm-project/commit/41cece8c86399dd1ffcb6b7a8b50c10083fe5a40
Author: David Truby <david.truby at arm.com>
Date: 2025-02-20 (Thu, 20 Feb 2025)
Changed paths:
M clang/include/clang/Driver/Options.td
M clang/lib/Driver/ToolChains/Clang.cpp
M clang/lib/Driver/ToolChains/CommonArgs.cpp
M clang/lib/Driver/ToolChains/CommonArgs.h
M clang/lib/Driver/ToolChains/Flang.cpp
M flang/include/flang/Frontend/CodeGenOptions.def
M flang/lib/Frontend/CompilerInvocation.cpp
M flang/lib/Frontend/FrontendActions.cpp
M flang/test/Driver/optimization-remark.f90
M flang/test/Integration/unroll-loops.f90
M flang/test/Lower/HLFIR/unroll-loops.fir
Log Message:
-----------
[flang] Add -f[no-]vectorize flags (#119718)
This patch adds the -fvectorize and -fno-vectorize flags to flang.
Note that this also changes the behaviour of `flang -fc1` to match that
of `clang -cc1`, which is that vectorization is only enabled in the
presence of the `-vectorize-loops` flag.
Additionally, this patch changes the behaviour of the default
optimisation levels to match clang, such that vectorization only happens
at the same levels as it does there.
This patch is in draft while I write an RFC to discuss the above two
changes.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list