[llvm] [LV][EVL] Emit vp.merge intrinsic to enable out-loop reduction in EVL vectorization. (PR #101641)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 21 20:28:16 PDT 2024
================
@@ -9386,10 +9397,8 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
cast<VPInstruction>(&U)->getOpcode() ==
VPInstruction::ComputeReductionResult;
});
- if (PreferPredicatedReductionSelect ||
- TTI.preferPredicatedReductionSelect(
- PhiR->getRecurrenceDescriptor().getOpcode(), PhiTy,
- TargetTransformInfo::ReductionFlags()))
+ if (CM.usePredicatedReductionSelect(
+ PhiR->getRecurrenceDescriptor().getOpcode(), PhiTy))
----------------
fhahn wrote:
Would it be sufficient to adjust the reduction phi recipe when introducing EVL recipes instead?
https://github.com/llvm/llvm-project/pull/101641
More information about the llvm-commits
mailing list