From: Jan Hubicka Date: Sat, 5 Jan 2019 17:47:34 +0000 (+0100) Subject: * ipa-fnsummary.c (analyze_function_body): Fix accounting of time. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=121356b0175c6cf1cfc64502f73b35d54b5681a5;p=gcc.git * ipa-fnsummary.c (analyze_function_body): Fix accounting of time. From-SVN: r267600 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 91c55fae6ad..f8fd7458bef 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-01-05 Jan Hubicka + + * ipa-fnsummary.c (analyze_function_body): Fix accounting of time. + 2019-01-05 Jakub Jelinek PR middle-end/82564 diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c index 1189648fed8..affb210e8ef 100644 --- a/gcc/ipa-fnsummary.c +++ b/gcc/ipa-fnsummary.c @@ -2234,12 +2234,12 @@ analyze_function_body (struct cgraph_node *node, bool early) { predicate ip = bb_predicate & predicate::not_inlined (); info->account_size_time (this_size * prob, - (this_time * prob) / 2, ip, + (final_time * prob) / 2, ip, p); } if (prob != 2) info->account_size_time (this_size * (2 - prob), - (this_time * (2 - prob) / 2), + (final_time * (2 - prob) / 2), bb_predicate, p); }