[llvm] [LV, VPlan] Check if plan is compatible to EVL transform (PR #92092)

Shih-Po Hung via llvm-commits llvm-commits at lists.llvm.org
Wed May 15 00:38:24 PDT 2024


================
@@ -8553,8 +8576,12 @@ void LoopVectorizationPlanner::buildVPlansWithVPRecipes(ElementCount MinVF,
             *Plan, CM.getMinimalBitwidths(), PSE.getSE()->getContext());
       VPlanTransforms::optimize(*Plan, *PSE.getSE());
       // TODO: try to put it close to addActiveLaneMask().
-      if (CM.foldTailWithEVL())
+      if (CM.foldTailWithEVL()) {
+        // Don't generate plan if the plan is not EVL-compatible
----------------
arcbbb wrote:

Fixed. Thanks!

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


More information about the llvm-commits mailing list