[mlir][tosa] Remove redundant "tosa.transpose" operations
authorAviad Cohen <aviadcohen7@gmail.com>
Tue, 10 Jan 2023 20:35:50 +0000 (12:35 -0800)
committerRob Suderman <suderman@google.com>
Tue, 10 Jan 2023 21:56:25 +0000 (13:56 -0800)
commitded988ed0c00e033aa7fa9ea42d7ad19f3dd983e
tree410c124605fb52467ca2c1aea6bb63228afa8e60
parent75e7b6ee3d25f6b5c4d64cb3e98b73752e00b683
[mlir][tosa] Remove redundant "tosa.transpose" operations

We can fold redundant Tosa::TransposeOp actions like identity tranpose/transpose(traspose).

Reviewed By: rsuderman

Differential Revision: https://reviews.llvm.org/D140466
mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp
mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
mlir/test/IR/transpose-fold.mlir [new file with mode: 0644]