diff options
author | Thomas Koenig <tkoenig@gcc.gnu.org> | 2021-07-06 07:04:09 +0200 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2021-07-06 07:04:09 +0200 |
commit | d7e3855d5dd8c001bb65dc7da1cda0249bfc2986 (patch) | |
tree | bcc5ce81885138f5d5c6f024ea217edb60cbf100 /gcc/tree-ssa-loop-im.c | |
parent | c64d15224c6dc4dc3b6b3c2c6b6fd5c7e0e9c072 (diff) | |
download | gcc-d7e3855d5dd8c001bb65dc7da1cda0249bfc2986.zip gcc-d7e3855d5dd8c001bb65dc7da1cda0249bfc2986.tar.gz gcc-d7e3855d5dd8c001bb65dc7da1cda0249bfc2986.tar.bz2 |
Do not replace variable op variable in I/O implied DO loop replacement.
This PR came about because index expressions of the form k+k in
implied DO loops in I/O statements were considered for replacement
by array slices.
Fixed by only doing the transformation if the expression is of the
type expr OP contastant.
gcc/fortran/ChangeLog:
PR fortran/100227
* frontend-passes.c (traverse_io_block): Adjust test for
when a variable is eligible for the transformation to
array slice.
gcc/testsuite/ChangeLog:
PR fortran/100227
* gfortran.dg/implied_do_io_7.f90: New test.
Diffstat (limited to 'gcc/tree-ssa-loop-im.c')
0 files changed, 0 insertions, 0 deletions