summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrbr <chrbr@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-17 06:50:08 +0000
committerchrbr <chrbr@138bc75d-0d04-0410-961f-82ee72b054a4>2015-04-17 06:50:08 +0000
commitb1369c4216a25dc148d4bdf0c82baec967ffd633 (patch)
tree59094dbc12ae5bfb6f80e2ddd6aa46307ffea81f
parent2d6ceeb661a31eb69dbbc960e41407b58d8584d3 (diff)
downloadgcc-b1369c4216a25dc148d4bdf0c82baec967ffd633.tar.gz
* ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
same attributes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222165 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/ipa-inline.c2
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 <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.
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)