[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 Nov 4 03:38:15 PST 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),
----------------
fhahn wrote:

Sounds good, but then the comment should be updated to not refer to predicted reductions I think

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


More information about the llvm-commits mailing list