summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Dialect/QuantOps
diff options
context:
space:
mode:
authorUday Bondhugula <udayb@iisc.ac.in>2019-08-29 01:13:01 -0700
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-08-29 01:13:29 -0700
commit4bb6f8ecdb54f4ee096d8f92603d628d0cac4ed6 (patch)
tree5dd16fe77e3a94b10aad09d5e08c43fc0c1eae4d /mlir/lib/Dialect/QuantOps
parentbc2a543225abdd3876ae0b31fac89a3b31872d86 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud