re PR fortran/82567 ([6/7/8] gfortran takes a long time to compile a simple implied...
authorThomas Koenig <tkoenig@gcc.gnu.org>
Wed, 18 Oct 2017 21:29:37 +0000 (21:29 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Wed, 18 Oct 2017 21:29:37 +0000 (21:29 +0000)
commite35ba10a77dae0b356d78f36bbabebe053264eb0
tree7aa37aa9dd5d44e348748e53461b23454160f1f9
parent9d0d0a5a1312edb8c32160c5645cf72841efa12d
re PR fortran/82567 ([6/7/8] gfortran takes a long time to compile a simple implied-do with -Optimization.)

2017-10-18  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/82567
* frontend-passes.c (combine_array_constructor): If an array
constructor is all constants and has more elements than a small
constant, don't convert a*[b,c] to [a*b,a*c] to reduce compilation
times.

2017-10-18  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/82567
* gfortran.dg/array_constructor_51.f90: New test.

From-SVN: r253872
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_constructor_51.f90 [new file with mode: 0644]