diff options
author | Aditya Kumar <aditya.k7@samsung.com> | 2015-12-02 17:11:52 +0000 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2015-12-02 17:11:52 +0000 |
commit | 2e733703c0328d10098ced65abcc9803b4e5616d (patch) | |
tree | 1e81e6d67ce52610d9ca4e70944d0e99453388dd /gcc/tree-streamer.c | |
parent | 84c36240fc2df7a749772bb02df8632c5d5acec6 (diff) | |
download | gcc-2e733703c0328d10098ced65abcc9803b4e5616d.zip gcc-2e733703c0328d10098ced65abcc9803b4e5616d.tar.gz gcc-2e733703c0328d10098ced65abcc9803b4e5616d.tar.bz2 |
fix invalid bounds on array refs
While enabling graphite in -O3 we found a Fortran testcase that fails
because the max of the type domain is -1. We used to add that as a constraint
to the elements accessed by the array, leading to a unfeasible constraint:
0 <= i <= -1. Having that constraint, drops the data reference as that says
that there are no elements accessed in the array.
* graphite-dependences.c (scop_get_reads): Add extra dumps.
(scop_get_must_writes): Same.
(scop_get_may_writes): Same.
(compute_deps): Same.
* graphite-sese-to-poly.c (bounds_are_valid): New.
(pdr_add_data_dimensions): Call bounds_are_valid.
* gfortran.dg/graphite/run-id-3.f90: New.
Co-Authored-By: Sebastian Pop <s.pop@samsung.com>
From-SVN: r231191
Diffstat (limited to 'gcc/tree-streamer.c')
0 files changed, 0 insertions, 0 deletions