summaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
diff options
context:
space:
mode:
authorGraham Hunter <graham.hunter@arm.com>2024-07-11 16:39:30 +0100
committerGitHub <noreply@github.com>2024-07-11 16:39:30 +0100
commit22a7f6dcc4fc83f80f81722ab9c83b6fa73416f8 (patch)
tree9811679ee7fb90313a956ea2363fca2732eafc8c /llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
parent621bcfc2fdff7b344938cca76a010a69f0375034 (diff)
Revert "[LV] Autovectorization for the all-in-one histogram intrinsic" (#98493)
Reverts llvm/llvm-project#91458 to deal with post-commit reviewer requests.
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
index bb32e1d38d33..f54eebb2874a 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
@@ -78,10 +78,6 @@ static cl::opt<LoopVectorizeHints::ScalableForceKind>
"Scalable vectorization is available and favored when the "
"cost is inconclusive.")));
-static cl::opt<bool> EnableHistogramVectorization(
- "enable-histogram-loop-vectorization", cl::init(false), cl::Hidden,
- cl::desc("Enables autovectorization of some loops containing histograms"));
-
/// Maximum vectorization interleave count.
static const unsigned MaxInterleaveFactor = 16;
@@ -1069,9 +1065,7 @@ bool LoopVectorizationLegality::canVectorizeMemory() {
}
if (!LAI->canVectorizeMemory())
- if (!EnableHistogramVectorization ||
- !LAI->canVectorizeMemoryWithHistogram())
- return false;
+ return false;
if (LAI->hasLoadStoreDependenceInvolvingLoopInvariantAddress()) {
reportVectorizationFailure("We don't allow storing to uniform addresses",