[Mlir-commits] [mlir] [mlir][Linalg] Add a pattern to fold concats of fill. (PR #98995)

Renato Golin llvmlistbot at llvm.org
Tue Jul 16 02:30:29 PDT 2024


================
@@ -1096,3 +1096,30 @@ func.func @transpose_transpose_fold(%input: tensor<5x4x3xf32>,
   func.return %transpose2 : tensor<3x4x5xf32>
 }
 
+
+// -----
+
+func.func @concats_of_fill(
----------------
rengolin wrote:

For static shapes, it would be nice to replace with a single `empty` + `fill`. But this could be part of another cleanup?

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


More information about the Mlir-commits mailing list