[llvm] [LV] Handle partial reductions with predication (PR #194859)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 29 06:35:15 PDT 2026


================
@@ -6804,6 +6840,12 @@ getScaledReductions(VPReductionPHIRecipe *RedPhiR, VPCostContext &CostCtx,
       std::swap(Op, PrevValue);
     }
 
+    // Look for VPBlend(cond_reduce(PrevValue, Op), PrevValue), where
----------------
sdesmalen-arm wrote:

This mentions `cond_reduce`, but should this just be `reduce` ? AIUI, it just checks that the current value (when looking through VPBlend) is the reduction chain.

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


More information about the llvm-commits mailing list