Lorenzo Chelini 9a5092b358 [MLIR][Tensor] Add canonicalization patterns for tensor.pack
- Fold an unpack(pack(x)) to x.

- Rewrite a `tensor.pack` to an `tensor.expand_shape` if only one
  dimension is packed.

Reviewed By: tyb0807, hanchung, mravishankar

Differential Revision: https://reviews.llvm.org/D141123
2023-01-12 08:46:45 +01:00
..