[Mlir-commits] [mlir] [mlir][tensor] Enhance pack/unpack simplification for identity outer_dims_perm cases. (PR #77409)
lorenzo chelini
llvmlistbot at llvm.org
Wed Jan 10 05:52:40 PST 2024
https://github.com/chelini approved this pull request.
Ok, thanks; it is a good tradeoff for now. I stumbled on this pattern as well:
```
%5 = tensor.empty() : tensor<2x32xf32>
%pack_3 = tensor.pack %arg3 outer_dims_perm = [0] inner_dims_pos = [0] inner_tiles = [32] into %5 : tensor<64xf32> -> tensor<2x32xf32>
```
Would you mind adding it to the tests as well? It should fold too.
https://github.com/llvm/llvm-project/pull/77409
More information about the Mlir-commits
mailing list