[MLIR][Tensor] Add canonicalization for UnpackOp
authorLorenzo Chelini <l.chelini@icloud.com>
Tue, 29 Nov 2022 13:51:34 +0000 (14:51 +0100)
committerLorenzo Chelini <l.chelini@icloud.com>
Thu, 1 Dec 2022 14:17:50 +0000 (15:17 +0100)
commit44f73560057609783575d8034cca3f40ae3960eb
tree9230b158ba198b7a651e1f62fe424b7cea8d7e42
parentdd0de4dca92cd6affafb47f788b64e99187168f1
[MLIR][Tensor] Add canonicalization for UnpackOp

pack(unpack(x)) -> x

Reviewed By: hanchung

Differential Revision: https://reviews.llvm.org/D138917
mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
mlir/test/Dialect/Tensor/canonicalize.mlir