From 86f46e3972ce44064990c1fcd97fa97a9492ee44 Mon Sep 17 00:00:00 2001 From: Christian Bruel Date: Fri, 17 Apr 2015 08:50:08 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 7 ++++++- gcc/ipa-inline.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) 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) -- 2.30.2