From: Jan Hubicka Date: Mon, 22 May 2017 13:56:52 +0000 (+0200) Subject: ipa-inline.c (edge_badness): Use inlined_time instead of inline_summaries->get. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b7cb2251a32e7af51c5edf97cbf118d5c2b6dd51;p=gcc.git ipa-inline.c (edge_badness): Use inlined_time instead of inline_summaries->get. * ipa-inline.c (edge_badness): Use inlined_time instead of inline_summaries->get. From-SVN: r248334 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 46f39ae486c..43a5e7387be 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2017-05-22 Jan Hubicka + + * ipa-inline.c (edge_badness): Use inlined_time instead of + inline_summaries->get. + +2017-05-22 Jan Hubicka + + * ipa-inline.c (edge_badness): Use estimate_size_after_inlining. + 2017-05-22 Nathan Sidwell * doc/invoke.texi (fdump-translation-unit): Delete documentation. diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index b0d589081d8..f13f983dfdd 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -1066,9 +1066,10 @@ edge_badness (struct cgraph_edge *edge, bool dump) { sreal numerator, denominator; int overall_growth; + sreal inlined_time = compute_inlined_call_time (edge, edge_time); numerator = (compute_uninlined_call_time (edge, unspec_edge_time) - - compute_inlined_call_time (edge, edge_time)); + - inlined_time); if (numerator == 0) numerator = ((sreal) 1 >> 8); if (caller->count) @@ -1144,7 +1145,7 @@ edge_badness (struct cgraph_edge *edge, bool dump) overall_growth += 256 * 256 - 256; denominator *= overall_growth; } - denominator *= inline_summaries->get (caller)->self_size + growth; + denominator *= inlined_time; badness = - numerator / denominator;