isl_pw_multi_aff_drop_dims: fix dropping of output dimensions
commit5f2df0734a48dd09b890fcb6884b8b5a35e5b763
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 14 Feb 2013 17:53:43 +0000 (14 18:53 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 14 Feb 2013 20:39:00 +0000 (14 21:39 +0100)
tree8a0c2e9406314fb8c8fcdd186d9c73b3f58c6610
parent9adbecacd745f39cd51ae0b861caac63ecb7e842
isl_pw_multi_aff_drop_dims: fix dropping of output dimensions

Most isl_pw_*_drop_dims functions don't support dropping of output dimensions
because their pieces have a fixed single output dimension.
However, the pieces of isl_pw_multi_* objects do support dropping of output
dimensions and therefore so should the isl_pw_multi_*_drop_dims functions.

We simply need to skip dropping dimensions from the domains.
The original code would leave the result in an inconsistent state.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_pw_templ.c
isl_test.c