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/48636] Enable more inlining with -O2 and higher


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

--- Comment #19 from Jan Hubicka <hubicka at gcc dot gnu.org> 2012-09-12 21:51:21 UTC ---
Author: hubicka
Date: Wed Sep 12 21:51:14 2012
New Revision: 191232

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191232
Log:

    PR fortran/48636
    * gcc.dg/ipa/inlinehint-2.c: New testcase.
    * ipa-inline-analysis.c (dump_inline_hints): Dump loop stride.
    (set_hint_predicate): New function.
    (reset_inline_summary): Reset loop stride.
    (remap_predicate_after_duplication): New function.
    (remap_hint_predicate_after_duplication): New function.
    (inline_node_duplication_hook): Update.
    (dump_inline_summary): Dump stride summaries.
    (estimate_function_body_sizes): Compute strides.
    (remap_hint_predicate): New function.
    (inline_merge_summary): Use it.
    (inline_read_section): Read stride.
    (inline_write_summary): Write stride.
    * ipa-inline.c (want_inline_small_function_p): Handle strides.
    (edge_badness): Likewise.
    * ipa-inline.h (inline_hints_vals): Add stride hint.
    (inline_summary): Update stride.

Added:
    trunk/gcc/testsuite/gcc.dg/ipa/inlinehint-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ipa-inline-analysis.c
    trunk/gcc/ipa-inline.c
    trunk/gcc/ipa-inline.h
    trunk/gcc/testsuite/ChangeLog


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