[flang-commits] [clang] [flang] [flang] Add -f[no-]vectorize flags (PR #119718)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Fri Dec 13 02:17:58 PST 2024
================
@@ -6980,3 +6980,37 @@ void driver::applyOverrideOptions(SmallVectorImpl<const char *> &Args,
++S;
}
}
+
+/// Vectorize at all optimization levels greater than 1 except for -Oz.
+/// For -Oz the loop vectorizer is disabled, while the slp vectorizer is
+/// enabled.
+bool driver::shouldEnableVectorizerAtOLevel(const ArgList &Args,
----------------
tblah wrote:
We have made some attempts to move shared logic out of `clang/` into `llvm/lib/Frontend/Driver`. Maybe this should go there too?
https://github.com/llvm/llvm-project/pull/119718
More information about the flang-commits
mailing list