[llvm-branch-commits] [llvm] [LV] Bundle sub reductions into VPExpressionRecipe (PR #147255)

David Sherwood via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jul 7 04:22:33 PDT 2025


================
@@ -1401,8 +1401,8 @@ static void analyzeCostOfVecReduction(const IntrinsicInst &II,
                              TTI::CastContextHint::None, CostKind, RedOp);
 
     CostBeforeReduction = ExtCost * 2 + MulCost + Ext2Cost;
-    CostAfterReduction =
-        TTI.getMulAccReductionCost(IsUnsigned, II.getType(), ExtType, CostKind);
+    CostAfterReduction = TTI.getMulAccReductionCost(IsUnsigned, II.getType(),
+                                                    ExtType, false, CostKind);
----------------
david-arm wrote:

nit: Probably better written as `/*Negated=*/false`

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


More information about the llvm-branch-commits mailing list