[Mlir-commits] [mlir] [MLIR][Vector]Add constraints to vector.shape_cast(constant) -> constant (PR #147691)
James Newling
llvmlistbot at llvm.org
Mon Jul 14 14:47:12 PDT 2025
================
@@ -1002,6 +1002,18 @@ func.func @fold_broadcast_shapecast(%arg0: vector<4xf32>) -> vector<4xf32> {
// -----
+// CHECK-LABEL: func @canonicalize_extract_shapecast_different_element_type
----------------
newling wrote:
Something along the lines of:
```
// CHECK: [...] = llvm.mlir.constant
// CHECK-NEXT: return %[[CONST]]
``
will be more explicit.
Wondering if it is ok to mix llvm dialect here, I guess so?
https://github.com/llvm/llvm-project/pull/147691
More information about the Mlir-commits
mailing list