Also consider index constants when folding integer arithmetics with constants.
authorStephan Herhut <herhut@google.com>
Mon, 11 Nov 2019 10:33:49 +0000 (02:33 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Mon, 11 Nov 2019 10:34:21 +0000 (02:34 -0800)
commite04d4bf865b01ec35ecfb98b34372a1dacd70266
tree1417b10fbb46ee44000d081a84bb6262ba456cef
parent85612fe6d195529db35913680bed8e8dbb6b9d9e
Also consider index constants when folding integer arithmetics with constants.

PiperOrigin-RevId: 279698088
mlir/include/mlir/IR/Matchers.h
mlir/test/Transforms/canonicalize.mlir