[Mlir-commits] [mlir] [mlir][vector] Separate multi_reduce lowering into transformations, flattening, and unrolling. (PR #178974)
Jakub Kuderski
llvmlistbot at llvm.org
Mon Feb 9 19:17:48 PST 2026
================
@@ -485,6 +539,328 @@ struct OneDimMultiReductionToTwoDim
}
};
+/// Unrolls vector.multi_reduction when the outermost dimension is the only
+/// reduction dimension. Transforms to elementwise arithmetic operations.
+///
+/// Example:
+///
+/// ```mlir
+/// %res = vector.multi_reduction <add> %src, %acc [0]
----------------
kuhar wrote:
Is `[0]` outermost or innermost?
https://github.com/llvm/llvm-project/pull/178974
More information about the Mlir-commits
mailing list