Commit 121356b0 by Jan Hubicka Committed by Jan Hubicka

* ipa-fnsummary.c (analyze_function_body): Fix accounting of time.

From-SVN: r267600
parent 2a95da04
2019-01-05 Jan Hubicka <hubicka@ucw.cz>
* ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
2019-01-05 Jakub Jelinek <jakub@redhat.com> 2019-01-05 Jakub Jelinek <jakub@redhat.com>
PR middle-end/82564 PR middle-end/82564
......
...@@ -2234,12 +2234,12 @@ analyze_function_body (struct cgraph_node *node, bool early) ...@@ -2234,12 +2234,12 @@ analyze_function_body (struct cgraph_node *node, bool early)
{ {
predicate ip = bb_predicate & predicate::not_inlined (); predicate ip = bb_predicate & predicate::not_inlined ();
info->account_size_time (this_size * prob, info->account_size_time (this_size * prob,
(this_time * prob) / 2, ip, (final_time * prob) / 2, ip,
p); p);
} }
if (prob != 2) if (prob != 2)
info->account_size_time (this_size * (2 - prob), info->account_size_time (this_size * (2 - prob),
(this_time * (2 - prob) / 2), (final_time * (2 - prob) / 2),
bb_predicate, bb_predicate,
p); p);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment