re PR fortran/45159 (Unnecessary temporaries)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Fri, 3 Dec 2010 10:35:12 +0000 (10:35 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Fri, 3 Dec 2010 10:35:12 +0000 (10:35 +0000)
commit8976d513cc7e285ef043df4766efada449216eec
tree9a5ce24417a6f1a45ba00b75518c778dfe427e49
parent272cec5de2c65fe12365a56080038a35ddc6c180
re PR fortran/45159 (Unnecessary temporaries)

2010-12-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/45159
* dependency.c (check_section_vs_section):  Pre-calculate
the relationship between the strides and the relationship
between the start values.  Use an integer constant one for
that purpose.
Forward dependencies for positive strides apply for where
the lhs start <= rhs start and lhs stride <= rhs stride
and vice versa for negative stride.  No need to compare
end expressions in either case (assume no bounds violation).

2010-12-02  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/45159
* gfortran.dg/dependency_38.f90:  New test.

From-SVN: r167413
gcc/fortran/ChangeLog
gcc/fortran/dependency.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dependency_38.f90 [new file with mode: 0644]