diff options
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/ipa-inline.c | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0ec2e34..1741b7e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,14 @@ 2019-01-05 Jan Hubicka <hubicka@ucw.cz> + PR tree-opt/86020 + Revert: + 2017-05-22 Jan Hubicka <hubicka@ucw.cz> + + * ipa-inline.c (edge_badness): Use inlined_time instead of + inline_summaries->get. + +2019-01-05 Jan Hubicka <hubicka@ucw.cz> + * opts.c (enable_fdo_optimizations): Enable version-loops-for-strides, loop-interchange, unrol-and-jam and tree-loop-distribution. diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 73da38c..8e34400 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -1173,7 +1173,7 @@ edge_badness (struct cgraph_edge *edge, bool dump) overall_growth += 256 * 256 - 256; denominator *= overall_growth; } - denominator *= inlined_time; + denominator *= ipa_fn_summaries->get (caller)->self_size + growth; badness = - numerator / denominator; |