[mlir][linalg] Remove unused payload related OutOpOperand
authorStanley Winata <stanley@nod-labs.com>
Mon, 10 Oct 2022 18:29:15 +0000 (11:29 -0700)
committerStanley Winata <stanley@nod-labs.com>
Mon, 10 Oct 2022 18:45:46 +0000 (11:45 -0700)
commitac0fe5dd14734be850ffebea1574d46e393f429a
treea9094f707cba96122b2a12fd6f09bfd619b7bde0
parent9d69c60357c8349774cbb592742593fb459c1a47
[mlir][linalg] Remove unused payload related OutOpOperand

Some higher level operations such as torch.max generates linalg generic
that returns both the index and the value of the max operation. However
sometimes not all information is being used. This however blocks
vectorization for certain cases which causes performance degradation.
This patch aims to fix this issue.

Reviewed By: mravishankar

Differential Revision: https://reviews.llvm.org/D135388
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
mlir/test/Dialect/Linalg/canonicalize-duplicate-inputs.mlir