]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/trans.h
re PR fortran/24524 (Fortran dependency checking should reverse loops)
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 23 Jul 2010 14:25:55 +0000 (14:25 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 23 Jul 2010 14:25:55 +0000 (14:25 +0000)
commit3d03ead0b8273efde57f6194617b35111a84b05d
treebe85c1a1d325c1a8b6496500d502795c61e15506
parentc4fcd06a10ddacc81f535b165034dbaa93b6005c
re PR fortran/24524 (Fortran dependency checking should reverse loops)

2009-07-23  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/24524
* trans-array.c (gfc_init_loopinfo): Initialize the reverse
field.
gfc_trans_scalarized_loop_end: If reverse set in dimension n,
reverse the scalarization loop.
gfc_conv_resolve_dependencies: Pass the reverse field of the
loopinfo to gfc_dep_resolver.
trans-expr.c (gfc_trans_assignment_1): Enable loop reversal for
assignment by resetting loop.reverse.
gfortran.h : Add the gfc_reverse enum.
trans.h : Add the reverse field to gfc_loopinfo.
dependency.c (gfc_check_dependency): Pass null to the new arg
of gfc_dep_resolver.
(gfc_check_section_vs_section): Check for reverse dependencies.
(gfc_dep_resolver): Add reverse argument and deal with the loop
reversal logic.
dependency.h : Modify prototype for gfc_dep_resolver to include
gfc_reverse *.

From-SVN: r162462
gcc/fortran/ChangeLog
gcc/fortran/dependency.c
gcc/fortran/dependency.h
gcc/fortran/gfortran.h
gcc/fortran/trans-array.c
gcc/fortran/trans-expr.c
gcc/fortran/trans.h