From 22a7f6dcc4fc83f80f81722ab9c83b6fa73416f8 Mon Sep 17 00:00:00 2001 From: Graham Hunter Date: Thu, 11 Jul 2024 16:39:30 +0100 Subject: Revert "[LV] Autovectorization for the all-in-one histogram intrinsic" (#98493) Reverts llvm/llvm-project#91458 to deal with post-commit reviewer requests. --- llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp') 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 "Scalable vectorization is available and favored when the " "cost is inconclusive."))); -static cl::opt 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", -- cgit v1.2.3