[llvm] [LV][EVL] Emit vp.merge intrinsic to enable out-loop reduction in EVL vectorization. (PR #101641)
Mel Chen via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 22 07:30:09 PDT 2024
================
@@ -1392,7 +1395,19 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
TypeInfo.inferScalarType(Sel),
false, false, false);
})
-
+ .Case<VPInstruction>([&](VPInstruction *VPI) -> VPRecipeBase * {
+ VPValue *LHS, *RHS;
+ if (!match(VPI, m_Select(m_Specific(HeaderMask), m_VPValue(LHS),
----------------
Mel-Chen wrote:
doc it dc2da769fabe791feee128e4e401e55301c4881a
As far as I know, currently only out-loop reduction requires this transformation.
https://github.com/llvm/llvm-project/pull/101641
More information about the llvm-commits
mailing list