tree2scop.c: map_to_previous: handle higher dimensional domains
commit0d6a196c7cf2507f9ca80364b51e8709e07c7a48
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 12 Mar 2014 15:42:16 +0000 (12 16:42 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 25 Mar 2014 13:36:28 +0000 (25 14:36 +0100)
tree48eb4d8c2f92fcf5fb60bd819071abde17b388bd
parenta9cf3b326229daa2c1402c4adcee09331c442233
tree2scop.c: map_to_previous: handle higher dimensional domains

Currently, the input set of map_to_previous is always single-dimensional.
However, when we change the extraction of a pet_scop from a pet_tree
from a bottom-up process to a top-down process, the dimension
of this set will be equal to the number of outer loops,
including the current loop.
We therefore need to take into account that the dimension of
the input may be greater than 1.

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