pet_scop_collect_arrays: keep track of isl_id representing array
commitd2993a79f7509aab6a8935fe990b8904885214bf
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 25 Nov 2015 09:58:13 +0000 (25 10:58 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 25 Nov 2015 11:29:32 +0000 (25 12:29 +0100)
treeaf83d7652d810f1a4dfe534c0545a17e6113700e
parentd9e857fb8255f6e460415a6c3863e40ebbbedb99
pet_scop_collect_arrays: keep track of isl_id representing array

pet_scop_collect_arrays collects arrays and sub-arrays that have
not already been added to the pet_scop.  It would represent
the outer arrays by means of their variable declarations,
but these declarations do not take into account any possible renamings
that may have occurred to the variables.
This could result in array entries with the wrong names or even
missing array entries in case of conflicting names.

The isl_id from which the variable declaration is extracted,
does keep track of the new name, so use those directly
to represent the outer arrays.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
scan.cc
scan.h
scop_plus.cc
scop_plus.h
tests/decl8.scop