This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/82567] [6/7/8] gfortran takes a long time to compile a simple implied-do with -Optimization.


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82567

--- Comment #5 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Wed Oct 18 21:29:37 2017
New Revision: 253872

URL: https://gcc.gnu.org/viewcvs?rev=253872&root=gcc&view=rev
Log:
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.


Added:
    trunk/gcc/testsuite/gfortran.dg/array_constructor_51.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/frontend-passes.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]