diff options
author | Uday Bondhugula <udayb@iisc.ac.in> | 2019-08-29 01:13:01 -0700 |
---|---|---|
committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-08-29 01:13:29 -0700 |
commit | 4bb6f8ecdb54f4ee096d8f92603d628d0cac4ed6 (patch) | |
tree | 5dd16fe77e3a94b10aad09d5e08c43fc0c1eae4d /mlir/lib/Dialect/QuantOps | |
parent | bc2a543225abdd3876ae0b31fac89a3b31872d86 (diff) | |
download | bcm5719-llvm-4bb6f8ecdb54f4ee096d8f92603d628d0cac4ed6.tar.gz bcm5719-llvm-4bb6f8ecdb54f4ee096d8f92603d628d0cac4ed6.zip |
Extend map canonicalization to propagate constant operands
- extend canonicalizeMapAndOperands to propagate constant operands into
the map's expressions (and thus drop those operands).
- canonicalizeMapAndOperands previously only dropped duplicate and
unused operands; however, operands that were constants were
retained.
This change makes IR maps/expressions generated by various
utilities/passes even simpler; also makes some of the test checks more
accurate and simpler -- for eg., 0' instead of symbol(%{{.*}}).
Signed-off-by: Uday Bondhugula <uday@polymagelabs.com>
Closes tensorflow/mlir#107
COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/mlir/pull/107 from bondhugula:canonicalize-maps c889a51486d14fbf7db489f224f881e7e1ff7d72
PiperOrigin-RevId: 266085289
Diffstat (limited to 'mlir/lib/Dialect/QuantOps')
0 files changed, 0 insertions, 0 deletions