[llvm] [LV, VP]VP intrinsics support for the Loop Vectorizer + adding new tail-folding mode using EVL. (PR #76172)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 5 07:53:58 PST 2024


================
@@ -8599,6 +8655,8 @@ void LoopVectorizationPlanner::buildVPlansWithVPRecipes(ElementCount MinVF,
         VPlanTransforms::truncateToMinimalBitwidths(
             *Plan, CM.getMinimalBitwidths(), PSE.getSE()->getContext());
       VPlanTransforms::optimize(*Plan, *PSE.getSE());
+      if (CM.useVPIWithVPEVLVectorization())
+        VPlanTransforms::addExplicitVectorLength(*Plan);
----------------
alexey-bataev wrote:

I tried it, explained it here long time ago https://reviews.llvm.org/D99750. It does not work because of some reason (some recipes are removed/transformed too early, so cannot put it later in the pipeline)

https://github.com/llvm/llvm-project/pull/76172


More information about the llvm-commits mailing list