[llvm] [LV][EVL] Skip tryAddExplicitVectorLength for plans with scalar VF. (PR #125497)
Mel Chen via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 4 04:39:54 PST 2025
================
@@ -8925,7 +8925,7 @@ void LoopVectorizationPlanner::buildVPlansWithVPRecipes(ElementCount MinVF,
VPlanTransforms::optimize(*Plan);
// TODO: try to put it close to addActiveLaneMask().
// Discard the plan if it is not EVL-compatible
- if (CM.foldTailWithEVL() &&
+ if (CM.foldTailWithEVL() && !Plan->hasScalarVF() &&
----------------
Mel-Chen wrote:
Make sense, thanks.
1524dafb3c39ac499e5800958365309ea3b9d783
https://github.com/llvm/llvm-project/pull/125497
More information about the llvm-commits
mailing list