diff options
author | Aditya Kumar <aditya.k7@samsung.com> | 2015-12-09 18:35:47 +0000 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2015-12-09 18:35:47 +0000 |
commit | ce6a2c929e629df9e40cc99001c3fadeb0c687cd (patch) | |
tree | a8789f9894bfd31726bb3973fa590688a8ff4e4b /gcc/graphite-sese-to-poly.c | |
parent | 834cf2570739e22f09dffda30e979f2891b7398c (diff) | |
download | gcc-ce6a2c929e629df9e40cc99001c3fadeb0c687cd.tar.gz |
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
Diffstat (limited to 'gcc/graphite-sese-to-poly.c')
-rw-r--r-- | gcc/graphite-sese-to-poly.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c index 887c2125447..480c552afa9 100644 --- a/gcc/graphite-sese-to-poly.c +++ b/gcc/graphite-sese-to-poly.c @@ -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))); |