[Mlir-commits] [mlir] [mlir][memref]: Collapse strided unit dim even if strides are dynamic (PR #157330)

Han-Chung Wang llvmlistbot at llvm.org
Tue Nov 4 12:01:51 PST 2025


================
@@ -440,7 +440,8 @@ func.func @expand_collapse_shape_dynamic(%arg0: memref<?x?x?xf32>,
          %arg4: index,
          %arg5: index,
          %arg6: index,
-         %arg7: memref<4x?x4xf32>) {
+         %arg7: memref<4x?x4xf32>,
+         %arg8: memref<1x1x18x?xsi8, strided<[?, ?, ?, 1], offset: ?>>) {
----------------
hanhanW wrote:

IMHO, the element type does not matter. We should probably just use `f32` or `i8` for consistency in this file.

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


More information about the Mlir-commits mailing list