Commit ce6a2c92 by Aditya Kumar Committed by Sebastian Pop

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
parent 834cf257
2015-12-09 Aditya Kumar <aditya.k7@samsung.com> 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
Sebastian Pop <s.pop@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>
* graphite-optimize-isl.c (optimize_isl): Improve dump message. * graphite-optimize-isl.c (optimize_isl): Improve dump message.
2015-12-09 Marek Polacek <polacek@redhat.com> 2015-12-09 Marek Polacek <polacek@redhat.com>
...@@ -912,7 +912,7 @@ pdr_add_memory_accesses (isl_map *acc, dr_info &dri) ...@@ -912,7 +912,7 @@ pdr_add_memory_accesses (isl_map *acc, dr_info &dri)
for (i = 0; i < nb_subscripts; i++) for (i = 0; i < nb_subscripts; i++)
{ {
isl_pw_aff *aff; 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, aff = extract_affine (scop, afn,
isl_space_domain (isl_map_get_space (acc))); isl_space_domain (isl_map_get_space (acc)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment