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
This commit is contained in:
parent
58aca9d95c
commit
b7cb2251a3
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,12 @@
|
|||
2017-05-22 Jan Hubicka <hubicka@ucw.cz>
|
||||
|
||||
* ipa-inline.c (edge_badness): Use inlined_time instead of
|
||||
inline_summaries->get.
|
||||
|
||||
2017-05-22 Jan Hubicka <hubicka@ucw.cz>
|
||||
|
||||
* ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
|
||||
|
||||
2017-05-22 Nathan Sidwell <nathan@acm.org>
|
||||
|
||||
* doc/invoke.texi (fdump-translation-unit): Delete documentation.
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue