add array access function in the right order

we used to add the access functions in the wrong order, Fortran style, leading to unprofitable interchanges.

	* graphite-sese-to-poly.c (pdr_add_memory_accesses): Iterate in
	the same order as adding data reference access functions.

Co-Authored-By: Sebastian Pop <s.pop@samsung.com>

From-SVN: r231465
This commit is contained in:
Aditya Kumar 2015-12-09 18:35:47 +00:00 committed by Sebastian Pop
parent 834cf25707
commit ce6a2c929e
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
Sebastian Pop <s.pop@samsung.com>
* graphite-sese-to-poly.c (pdr_add_memory_accesses): Iterate in
the same order as adding data reference access functions.
2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
Sebastian Pop <s.pop@samsung.com>

View File

@ -912,7 +912,7 @@ pdr_add_memory_accesses (isl_map *acc, dr_info &dri)
for (i = 0; i < nb_subscripts; i++)
{
isl_pw_aff *aff;
tree afn = DR_ACCESS_FN (dr, nb_subscripts - 1 - i);
tree afn = DR_ACCESS_FN (dr, i);
aff = extract_affine (scop, afn,
isl_space_domain (isl_map_get_space (acc)));