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
This commit is contained in:
Christian Bruel 2015-04-17 08:50:08 +02:00
parent 37dc4579fb
commit 86f46e3972
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,9 @@
2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
2015-04-17 Christian Bruel <christian.bruel@st.com>
* ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
same attributes.
2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
* ira-color.c (setup_left_conflict_sizes_p): Do not process
node itself when computing left conflict subnode size.

View File

@ -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)