[mlir,shape] Add max/min folder for simple case
authorJacques Pienaar <jpienaar@google.com>
Wed, 7 Apr 2021 03:22:42 +0000 (20:22 -0700)
committerJacques Pienaar <jpienaar@google.com>
Wed, 7 Apr 2021 03:22:42 +0000 (20:22 -0700)
commit8b109bc2eae0d33a140982c02c77501932bfa394
treed2bd7bcf7473b9674b2a62240878d000407724fc
parent162c2759b66a5ecc5ffa59fb0e894e8bbb377f6a
[mlir,shape] Add max/min folder for simple case

When both arguments are the same for these ops, propagate this argument.
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
mlir/lib/Dialect/Shape/IR/Shape.cpp
mlir/test/Dialect/Shape/canonicalize.mlir