[Mlir-commits] [mlir] [MLIR][Vector] Replace vector.transpose with vector.shape_cast (PR #125966)

Han-Chung Wang llvmlistbot at llvm.org
Thu Feb 6 23:49:21 PST 2025


hanhanW wrote:

The author is trying to address one of my old issue, which propose to drop unit dims for transpose ops if it is a nop. https://github.com/iree-org/iree/issues/17593

I revisited the issue because it was quite old, and I found that we already have such a pattern to handle the transpose op. The no-ops get folded away as expected. This kind of pattern is categorized to dropXXXUnitDim, and we already have such support. It is landed as https://github.com/llvm/llvm-project/commit/da8778e499d8049ac68c2e152941a38ff2bc9fb2, so I think we no longer need the PR.

(Sorry @ita9naiwa , I should revisit it first.)

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


More information about the Mlir-commits mailing list