[Mlir-commits] [mlir] [mlir] Fold memref.cast static-to-dynamic to memref.expand_shape (PR #170037)
Matthias Springer
llvmlistbot at llvm.org
Mon Dec 1 05:00:00 PST 2025
================
@@ -551,6 +551,90 @@ func.func @fold_memref_expand_cast(%arg0 : memref<?x?xf32>) -> memref<2x4x4xf32>
// -----
+// CHECK-LABEL: @fold_memref_expand_with_static_to_dynamic_cast
+// CHECK-NOT: memref.cast
----------------
matthias-springer wrote:
Can you update all the new test cases to include the types of the `memref.expand_shape`? E.g., `// CHECK: memref.expand_shape {{.*}} : memref<...> to memref<...>`
https://github.com/llvm/llvm-project/pull/170037
More information about the Mlir-commits
mailing list