Apply the permutation map on each affine nest
authorHugo Pompougnac <hugo.pompougnac@inria.fr>
Sat, 4 Dec 2021 01:42:23 +0000 (07:12 +0530)
committerUday Bondhugula <uday@polymagelabs.com>
Sat, 4 Dec 2021 12:18:34 +0000 (17:48 +0530)
commit5d49511b3058cac17eb80d243d3e2ad5cb0cddb9
treedfa33fe364ecb48036a88148dfea7d9cc6ce3822
parent79d3132998b2828be8f7d2ec411f91fb11b3e01f
Apply the permutation map on each affine nest

When using -test-loop-permutation="permutation-map=...", applies the
permutation map on each affine nest in the function (and not only the
first one). If the size of the permutation map and the size of a nest
are not consistent, do nothing on this particular nest (instead of
making MLIR crash).

Differential Revision: https://reviews.llvm.org/D112947
mlir/test/lib/Dialect/Affine/TestLoopPermutation.cpp