summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/Utils/Utils.cpp
diff options
context:
space:
mode:
authorAlex Zinenko <zinenko@google.com>2018-10-30 06:11:29 -0700
committerjpienaar <jpienaar@google.com>2019-03-29 13:44:13 -0700
commit19f14b72bbfa4ae5b7ae108faaf08aa392bf7216 (patch)
treefc64f7be04746198ae778ecd4279c8b77316fcbe /mlir/lib/Transforms/Utils/Utils.cpp
parentbdfd6193b8f64384853aef46d6b48911ed892268 (diff)
downloadbcm5719-llvm-19f14b72bbfa4ae5b7ae108faaf08aa392bf7216.tar.gz
bcm5719-llvm-19f14b72bbfa4ae5b7ae108faaf08aa392bf7216.zip
Drop unbounded identity map from MemRef affine map composition.
Unbounded identity maps do not affect the accesses through MemRefs in any way. A previous CL dropped such maps only if they were alone in the composition. Go further and drop such maps everywhere they appear in the composition. Update the parser test to check for unique'd hoisted map to be present but without assuming any particular order. Because some of the hoisted identity maps still apear due to the nested "for" statements, we need to check for them. However, they no longer appear above the non-identity maps because they are no longer necessary for the extfunc memref declarations that are textually first in the test file. This order may change further as map simplification is improved, there is no reason to assume a particular order. PiperOrigin-RevId: 219287280
Diffstat (limited to 'mlir/lib/Transforms/Utils/Utils.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud