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-Tag: upstream/12.2.0~26988 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be917808aa3310d46f586e6586ef08d302837f1e;p=platform%2Fupstream%2Fgcc.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 0ec2e34..1741b7e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,14 @@ 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 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;