[Mlir-commits] [mlir] [mlir][linalg] Reimplement SimplifyPackToExpandShape and SimplifyUnPackToCollapseShape for more cases. (PR #204971)
Jerry Shih
llvmlistbot at llvm.org
Wed Jul 1 19:24:21 PDT 2026
JerryShih wrote:
> > Reimplement SimplifyPackToExpandShape and SimplifyUnPackToCollapseShape for more cases.
>
> Could you summarise the newly supported cases? Thank you!
@banach-space
Do I misunderstand your sentence? Should I rewrite the commit message `title` to show the cases?
Maybe:
```
Reimplement SimplifyPackToExpandShape and SimplifyUnPackToCollapseShape for no transposition/padding semantic pack/unpack op.
```
original commit msg:
```
Reimplement SimplifyPackToExpandShape and SimplifyUnPackToCollapseShape for more cases.
If there is no transposition/padding semantic for pack/unpack,
we could try to use `mlir::getReassociationIndicesForReshape()`
to get the CollapseShapeOp/ExpandShapeOp form.
```
https://github.com/llvm/llvm-project/pull/204971
More information about the Mlir-commits
mailing list