[Mlir-commits] [mlir] [MLIR][Tensor] Remove FoldDimOf[Expand|Collapse]Shape Pattern (PR #134219)

Kunwar Grover llvmlistbot at llvm.org
Mon Apr 7 09:36:53 PDT 2025


https://github.com/Groverkss approved this pull request.

LGTM, can you just update the PR description to include:

```
This PR makes the tensor.dim folders for tensor.expand_shape/tensor.collapse_shape consistent with other tensor operations. In general:

1. All tensor.dim operation resolutions have been moved to use the ReifyRankedShapedTypeOpInterface.
2. None of the other tensor.dim resolution patterns are run during canonicalizations. They have non-local effects, which make them bad for canonicalizations, and were removed from other tensor operations some time ago.
```


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


More information about the Mlir-commits mailing list