[mlir] Fix SameOperandsAndResultType to check encoding.
authorJacques Pienaar <jpienaar@google.com>
Wed, 21 Dec 2022 17:49:18 +0000 (09:49 -0800)
committerJacques Pienaar <jpienaar@google.com>
Wed, 21 Dec 2022 17:49:18 +0000 (09:49 -0800)
commit829733af4ac2895543797443c82f1f1709472c4f
tree1a7b7c6e586983b8ce35ceb7284ed4b482265569
parent9c58d10c7da88f8e7385d3954399f9ab5e565a33
[mlir] Fix SameOperandsAndResultType to check encoding.

Encoding was accidentally left out here even though it forms part of the type.
This is small tightening step and I'll look at follow on to tighten more.

Differential Revision: https://reviews.llvm.org/D140445
mlir/lib/IR/Operation.cpp
mlir/test/IR/traits.mlir