From: Jan Hubicka Date: Sat, 5 Oct 2019 21:36:46 +0000 (+0200) Subject: ipa-inline.c: Fix type; compute size rather than self_size for size of caller function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c291ad828fcb5f01a1d2cb23f6078e9a6f958b9;p=gcc.git ipa-inline.c: Fix type; compute size rather than self_size for size of caller function. * ipa-inline.c: Fix type; compute size rather than self_size for size of caller function. From-SVN: r276629 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e85571271c6..d4e180dcf33 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 2801cb9f82d..681801a9aec 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;