summaryrefslogtreecommitdiff
path: root/gcc/ipa-inline.c
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 /gcc/ipa-inline.c
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
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r--gcc/ipa-inline.c2
1 files changed, 1 insertions, 1 deletions
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)