[Mlir-commits] [mlir] [mlir][vector] Add ElementwiseToOuterproduct (PR #93664)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Mon Jun 3 01:52:27 PDT 2024
================
@@ -1795,6 +1795,80 @@ struct BreakDownVectorReduction final : OpRewritePattern<vector::ReductionOp> {
unsigned maxNumElementsToExtract = 0;
};
+/// Pattern aiming to fold a series of ops mulf(tr(broadcast(A)), broadcast(B))
+/// into vector.outerproduct(A, B) such as :
----------------
banach-space wrote:
[nit] Keep it shorter. In particular, "series" might suggest that more than one occurance of `mulf(tr(broadcast(A)), broadcast(B))` is required:
```suggestion
/// Fold `mulf(tr(broadcast(A)), broadcast(B))` into `vector.outerproduct(A, B)`. Example:
```
https://github.com/llvm/llvm-project/pull/93664
More information about the Mlir-commits
mailing list