From: hubicka Date: Sat, 5 Oct 2019 21:36:46 +0000 (+0000) Subject: * ipa-inline.c: Fix type; compute size rather than self_size X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c45521070e91c0f2ad551840fb45e132a199cadf;p=thirdparty%2Fgcc.git * ipa-inline.c: Fix type; compute size rather than self_size for size of caller function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276629 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e85571271c64..d4e180dcf33d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-10-05 Jan Hubicka + + * ipa-inline.c: Fix type; compute size rather than self_size + for size of caller function. + 2019-10-05 Iain Sandoe PR target/59888 diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 2801cb9f82d5..681801a9aec0 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -1186,7 +1186,7 @@ edge_badness (struct cgraph_edge *edge, bool dump) if (need_more_work) noninline_callee (); } - Withhout panilizing this case, we usually inline noninline_callee + Withhout penalizing this case, we usually inline noninline_callee into the inline_caller because overall_growth is small preventing further inlining of inline_caller. @@ -1243,7 +1243,7 @@ edge_badness (struct cgraph_edge *edge, bool dump) overall_growth += 256 * 256 - 256; denominator *= overall_growth; } - denominator *= ipa_fn_summaries->get (caller)->self_size + growth; + denominator *= ipa_fn_summaries->get (caller)->size + growth; badness = - numerator / denominator;