update normalizeMemRef utility; handle missing failure check + add more tests
authorUday Bondhugula <udayb@iisc.ac.in>
Sat, 14 Sep 2019 20:21:00 +0000 (13:21 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Sat, 14 Sep 2019 20:21:35 +0000 (13:21 -0700)
commit1366467a3ba9c489bbabe27f89cf6af404601149
tree181dc3b33982326887184d4fe40ce600b9b3bd1d
parent018cfa94d963f2a62eeba15e84f101a108476b95
update normalizeMemRef utility; handle missing failure check + add more tests

- take care of symbolic operands with alloc
- add missing check for compose map failure and a test case
- add test cases on strides
- drop incorrect check for one-to-one'ness

Signed-off-by: Uday Bondhugula <uday@polymagelabs.com>
Closes tensorflow/mlir#132

COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/mlir/pull/132 from bondhugula:normalize-memrefs 8aebf285fb0d7c19269d85255aed644657e327b7
PiperOrigin-RevId: 269105947
mlir/include/mlir/Dialect/StandardOps/Ops.td
mlir/lib/Transforms/Utils/Utils.cpp
mlir/test/Transforms/memref-normalize.mlir