[mlir] Additional folding for SelectOp
authorButygin <ivan.butygin@intel.com>
Fri, 12 Mar 2021 14:39:43 +0000 (17:39 +0300)
committerButygin <ivan.butygin@intel.com>
Sat, 20 Mar 2021 10:40:42 +0000 (13:40 +0300)
commit7219b31d40f14604c669d633b014d0cc8b707cf3
tree244cc8b41256a16fc358d90cabddfb7f758183bb
parent77080a1eb6061df2dcfae8ac84b85ad4d1e02031
[mlir] Additional folding for SelectOp

* Fold SelectOp when both true and false args are same SSA value
* Fold some cmp + select patterns

Differential Revision: https://reviews.llvm.org/D98576
mlir/lib/Dialect/StandardOps/IR/Ops.cpp
mlir/test/Dialect/Standard/canonicalize.mlir