Han-Chung Wang b21949eb34
Revert "[mlir][memref]: Collapse strided unit dim even if strides are dynamic" (#166448)
Reverts llvm/llvm-project#157330

The original revision introduces a bug in `isGuaranteedCollapsible`. The
`memref<3x3x1x96xf32, strided<[288, 96, 96, 1], offset: 864>>` is no
longer collapsable with the change. The revision reverts the change to
bring back correct behavior. `stride` should be computed as `96` like
the old behavior in the failed iteration.


92a1eb3712/mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp (L2597-L2605)
2025-11-04 21:49:46 +00:00
..