[MLIR][TOSA] Lower tosa.identity and tosa.identitiyn to linalg
authorRob Suderman <rob.suderman@gmail.com>
Fri, 26 Feb 2021 01:46:23 +0000 (17:46 -0800)
committerRob Suderman <rob.suderman@gmail.com>
Fri, 26 Feb 2021 23:45:07 +0000 (15:45 -0800)
commitf685c9ac8647daeb425b05ffb9c555ccfc7ec78b
tree5e85ded6be90c84591880438bd8a1c875d414af4
parent016f0ee68621b5cba29b153fc221b95af3330736
[MLIR][TOSA] Lower tosa.identity and tosa.identitiyn to linalg

Both identity ops can be loweried by replacing their results with their
inputs. We keep this as a linalg lowering as other backends may choose to
create copies.

Differential Revision: https://reviews.llvm.org/D97517
mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir