[mlir][Linalg] Add missing check to canonicalization of GenericOp that are identity...
authorMaheshRavishankar <ravishankarm@google.com>
Fri, 15 Jan 2021 21:17:30 +0000 (13:17 -0800)
committerMaheshRavishankar <ravishankarm@google.com>
Fri, 15 Jan 2021 21:55:35 +0000 (13:55 -0800)
commitd7bc3b7ce23b664d6620cdc32370a8614523ca2f
tree764543205f0779c023937e94d64b2fb94715c1a3
parented0fd567ebdbbbbc61eb87346a58196a73f9b814
[mlir][Linalg] Add missing check to canonicalization of GenericOp that are identity ops.

The operantion is an identity if the values yielded by the operation
is the argument of the basic block of that operation. Add this missing check.

Differential Revision: https://reviews.llvm.org/D94819
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
mlir/test/Dialect/Linalg/canonicalize.mlir