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 libfortran/52537] slow trim function


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52537

--- Comment #5 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2012-05-11 13:56:16 UTC ---
Author: tkoenig
Date: Fri May 11 13:56:06 2012
New Revision: 187406

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187406
Log:
2012-05-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/52537
    * frontend-passes.c (optimize_op):  Change
    old-style comparison operators to new-style, simplify
    switch as a result.
    (empty_string):  New function.
    (get_len_trim_call):  New function.
    (optimize_comparison):  If comparing to an empty string,
    use comparison of len_trim to zero.
    Use new-style comparison operators only.
    (optimize_trim):  Use get_len_trim_call.

2012-05-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/52537
    * gfortran.dg/string_compare_4.f90:  New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/string_compare_4.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]