[llvm] 7c68ed8 - [SVE] Reintroduce -scalable-vectorization=preferred as an alias to "on".
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 21 04:56:57 PST 2021
Author: Paul Walker
Date: 2021-12-21T12:54:04Z
New Revision: 7c68ed8892f50ffba2af85b2ddd17ba7526313a3
URL: https://github.com/llvm/llvm-project/commit/7c68ed8892f50ffba2af85b2ddd17ba7526313a3
DIFF: https://github.com/llvm/llvm-project/commit/7c68ed8892f50ffba2af85b2ddd17ba7526313a3.diff
LOG: [SVE] Reintroduce -scalable-vectorization=preferred as an alias to "on".
Some buildbots still rely on the experimental flag, so let's keep
it until everything has been migrated to the new "on by default"
state.
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
index 89bfc17d1b82c..81e5aa223c070 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
@@ -64,6 +64,10 @@ static cl::opt<LoopVectorizeHints::ScalableForceKind>
cl::values(
clEnumValN(LoopVectorizeHints::SK_FixedWidthOnly, "off",
"Scalable vectorization is disabled."),
+ clEnumValN(
+ LoopVectorizeHints::SK_PreferScalable, "preferred",
+ "Scalable vectorization is available and favored when the "
+ "cost is inconclusive."),
clEnumValN(
LoopVectorizeHints::SK_PreferScalable, "on",
"Scalable vectorization is available and favored when the "
More information about the llvm-commits
mailing list