re PR fortran/48636 (Enable more inlining with -O2 and higher)
commit52843a4726629c92066668cf79979676560efce6
authorJan Hubicka <jh@suse.cz>
Sun, 11 Nov 2012 18:14:35 +0000 (11 19:14 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 11 Nov 2012 18:14:35 +0000 (11 18:14 +0000)
tree5c72b6d621b40aab51257d773d939ff6d2be4567
parent6e7e4ca2e8a83335929695eca491c587ae1fcc56
re PR fortran/48636 (Enable more inlining with -O2 and higher)

PR middle-end/48636
* ipa-inline.c (want_inline_small_function_p): Take aray index hint.
(edge_badness): Likewise.
* ipa-inline.h (inline_hints_vals): Add array_index and comments.
(inline_summary_: Add ARRAY_INDEX.
* ipa-inline-analysis.c (dump_inline_hints): Dump array_index hint.
(reset_inline_summary): Handle array_index hint.
(inline_node_duplication_hook): Likewise.
(dump_inline_summary): Likewise.
(array_index_predicate): New function.
(estimate_function_body_sizes): Use it.
(estimate_node_size_and_time): Use array_index hint.
(inline_merge_summary, inline_read_section): Likewise.

From-SVN: r193406
gcc/ChangeLog
gcc/ipa-inline-analysis.c
gcc/ipa-inline.c
gcc/ipa-inline.h