[llvm] [SLP] Support ordered fadd reduction via reduction intrinsics (PR #189451)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Sat May 9 14:19:44 PDT 2026
================
@@ -29046,6 +29138,239 @@ class HorizontalReduction {
return VectorizedTree;
}
+ /// Attempt to vectorize an ordered (linearized) reduction chain.
+ /// Reduced values from matchOrderedReduction() are in accumulation order.
+ /// Vectorized subsets are immediately reduced via ordered reduction
+ /// intrinsics; non-vectorized values are folded linearly.
+ Value *tryToReduceOrdered(BoUpSLP &V, const DataLayout &DL,
----------------
alexey-bataev wrote:
To keep the compatibility with the associative reduction code. It uses V for SLP tree
https://github.com/llvm/llvm-project/pull/189451
More information about the llvm-commits
mailing list