[mlir][std] Fold comparisons when the operands are equal
authorStephan Herhut <herhut@google.com>
Fri, 20 Nov 2020 10:46:22 +0000 (11:46 +0100)
committerStephan Herhut <herhut@google.com>
Fri, 20 Nov 2020 12:26:41 +0000 (13:26 +0100)
commitcb778c34237c384821b7bc961f15d139a10b0ca7
tree366902810a72ea74b14ac6adbd1ab28c9f5f444c
parent0caa82e2ac53b2ff475531086dfe648fb2d6158a
[mlir][std] Fold comparisons when the operands are equal

For equal operands, comparisons can be decided statically.

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