From: Christian Bruel Date: Fri, 17 Apr 2015 06:50:08 +0000 (+0200) Subject: ipa-inline.c (can_inline_edge_p): Allow inlining of functions with same attributes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=86f46e3972ce44064990c1fcd97fa97a9492ee44;p=gcc.git ipa-inline.c (can_inline_edge_p): Allow inlining of functions with same attributes. * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with same attributes. From-SVN: r222165 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 008bd47fb01..eba141ddb5e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,9 @@ -2015-04-16 Zhouyi Zhou +2015-04-17 Christian Bruel + + * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with + same attributes. + +2015-04-16 Zhouyi Zhou * ira-color.c (setup_left_conflict_sizes_p): Do not process node itself when computing left conflict subnode size. diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 4533ea46be7..565c5e38b64 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -515,7 +515,7 @@ can_inline_edge_p (struct cgraph_edge *e, bool report, else if (opt_for_fn (callee->decl, optimize_size) < opt_for_fn (caller->decl, optimize_size) || (opt_for_fn (callee->decl, optimize) - >= opt_for_fn (caller->decl, optimize))) + > opt_for_fn (caller->decl, optimize))) { if (estimate_edge_time (e) >= 20 + inline_edge_summary (e)->call_stmt_time)