[Mlir-commits] [mlir] [Mlir] decompose generic by unfolding projected permutation crash fix (PR #122449)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Mon Feb 10 10:38:22 PST 2025
================
@@ -69,3 +69,35 @@ func.func @broadcast_only(%x : tensor<2x16x32xf32>, %y: tensor<2x32xf32>, %z :
// CHECK: %[[X_bc:.+]] = linalg.broadcast ins(%[[Y]] : tensor<2x32xf32>) outs(%[[E0]] : tensor<2x16x32xf32>) dimensions = [1]
// CHECK: {{.*}} = linalg.div ins(%[[X]], %[[X_bc]] : tensor<2x16x32xf32>, tensor<2x16x32xf32>) outs(%arg2 : tensor<2x16x32xf32>) -> tensor<2x16x32xf32>
// CHECK-NOT: linalg.generic
+
+// -----
+
+// unsupported currently.
+
+func.func @no_decompose_on_scalar() -> tensor<2x2xi32> {
----------------
banach-space wrote:
This is basically a "negative" test - lets name it accordingly.
```suggestion
func.func @negative_scalar_input() -> tensor<2x2xi32> {
```
https://github.com/llvm/llvm-project/pull/122449
More information about the Mlir-commits
mailing list