From: Jan Hubicka Date: Sun, 6 Jan 2019 17:16:00 +0000 (+0100) Subject: re PR tree-optimization/86020 (Performance regression in Eigen geometry.cpp test... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=be917808aa3310d46f586e6586ef08d302837f1e;p=gcc.git re PR tree-optimization/86020 (Performance regression in Eigen geometry.cpp test starting with r248334) PR tree-opt/86020 Revert: 2017-05-22 Jan Hubicka * ipa-inline.c (edge_badness): Use inlined_time instead of inline_summaries->get. From-SVN: r267612 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0ec2e3463ba..1741b7ef6ce 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2019-01-05 Jan Hubicka + + PR tree-opt/86020 + Revert: + 2017-05-22 Jan Hubicka + + * ipa-inline.c (edge_badness): Use inlined_time instead of + inline_summaries->get. + 2019-01-05 Jan Hubicka * opts.c (enable_fdo_optimizations): Enable diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 73da38c7859..8e344001105 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;