[Mlir-commits] [mlir] [mlir][vector] shape_cast(broadcast) -> broadcast canonicalization (PR #134939)
Diego Caballero
llvmlistbot at llvm.org
Wed Apr 9 03:45:35 PDT 2025
================
@@ -1017,6 +1017,31 @@ func.func @canonicalize_broadcast_shapecast_to_shapecast(%arg0: vector<3x4xf32>)
// -----
+
+// CHECK-LABEL: func @canonicalize_broadcast_shapecast_scalar
+// CHECK: vector.broadcast
+// CHECK-SAME: f32 to vector<3x4x1xf32>
----------------
dcaballe wrote:
nit: probably easier to understand if we match this with a single line. Something like:
```
CHECK: vector.broadcast %{{.+}} : f32 to vector<3x4x1xf32>
```
https://github.com/llvm/llvm-project/pull/134939
More information about the Mlir-commits
mailing list