diff options
author | vries <vries@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-04-09 15:28:24 +0000 |
---|---|---|
committer | vries <vries@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-04-09 15:28:24 +0000 |
commit | 07de41ba0315e9003103e09ec945a746a44a6682 (patch) | |
tree | 62d4d43012208ea727332cdeb913cbb5a85241d9 /gcc/graphite-sese-to-poly.c | |
parent | d294e3fb6a191ff78b1764380473eb9da96d1864 (diff) | |
download | gcc-07de41ba0315e9003103e09ec945a746a44a6682.tar.gz |
Fix pdr accesses order
2016-04-09 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/68953
* graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
first to last subscript.
* gcc.dg/graphite/pr68953.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234851 138bc75d-0d04-0410-961f-82ee72b054a4
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 b62789f84c6..22a09a1782f 100644 --- a/gcc/graphite-sese-to-poly.c +++ b/gcc/graphite-sese-to-poly.c @@ -672,7 +672,7 @@ pdr_add_memory_accesses (isl_map *acc, dr_info &dri) aff = extract_affine (scop, afn, isl_space_domain (isl_map_get_space (acc))); - acc = set_index (acc, i + 1, aff); + acc = set_index (acc, nb_subscripts - i , aff); } return isl_map_coalesce (acc); |