[MLIR] Canonicalize sub/add of a constant and another sub/add of a constant
authorWilliam S. Moses <gh@wsmoses.com>
Sun, 2 May 2021 02:54:23 +0000 (22:54 -0400)
committerWilliam S. Moses <gh@wsmoses.com>
Mon, 3 May 2021 15:49:23 +0000 (11:49 -0400)
commit039bdcc0a8a213faa8f32837c44b81ce41f41ab0
tree0879c5f4c817e01740645d90b6b50608ddcbb205
parent3ed6a6f6cdea9777d0e0175e22cea04e2c0c6d43
[MLIR] Canonicalize sub/add of a constant and another sub/add of a constant

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