[llvm] [LV, VPlan] Check if plan is compatible to EVL transform (PR #92092)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue May 14 06:30:54 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
----------------
fhahn wrote:
Nit: the plan has already been generated, maybe 'discard` would be more accurate.
https://github.com/llvm/llvm-project/pull/92092
More information about the llvm-commits
mailing list