From be917808aa3310d46f586e6586ef08d302837f1e Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 6 Jan 2019 18:16:00 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 9 +++++++++ gcc/ipa-inline.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) 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; -- 2.30.2