[mlir][tosa] Remove zero-fill of tosa.concat outputs when lowering to linalg.
authorRob Suderman <rob.suderman@gmail.com>
Mon, 14 Nov 2022 19:38:16 +0000 (11:38 -0800)
committerRob Suderman <rob.suderman@gmail.com>
Mon, 14 Nov 2022 19:39:24 +0000 (11:39 -0800)
commit07205761417d718dd0bddde9a1165af438cb1eaa
tree0631ddbe25f0cfd27c5ec249fcfd3ece6b9cf108
parent11e86868c1a1ee67a1d88ef84b68193d06dc996d
[mlir][tosa] Remove zero-fill of tosa.concat outputs when lowering to linalg.

Since all output elements are known to be overridden by construction the fill is not required. This change makes the tosa lowering consistent with the MHLO and Torch lowerings of concat which do not do the fill.

Reviewed By: rsuderman

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