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
+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>
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)));