[llvm] [LoopVectorizer] Allow partial reductions to be made in predicated loops (PR #124268)

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 29 09:16:06 PST 2025


================
@@ -2448,7 +2448,8 @@ class VPReductionPHIRecipe : public VPHeaderPHIRecipe,
 /// A recipe for forming partial reductions. In the loop, an accumulator and
 /// vector operand are added together and passed to the next iteration as the
 /// next accumulator. After the loop body, the accumulator is reduced to a
-/// scalar value.
+/// scalar value. If the mask operand is not nullptr then it is applied to the
+/// vector operand on each iteration.
----------------
MacDue wrote:

Outdated comment? There's no mask operand anymore. 

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


More information about the llvm-commits mailing list