From 12daa22a2c4e3a9c1eba6740bdc2b67d7b7b181e Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 30 Mar 2015 04:00:56 +0200 Subject: [PATCH] re PR ipa/65076 (16% tramp3d-v4.cpp compile time regression) PR ipa/65076 * ipa-inline.c (edge_badness): Base denominator on callee's grwoth squared. From-SVN: r221769 --- gcc/ChangeLog | 6 ++++++ gcc/ipa-inline.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9baf88b1471..e3d2a3d2af6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-03-27 Jan Hubicka + + PR ipa/65076 + * ipa-inline.c (edge_badness): Base denominator on callee's + grwoth squared. + 2015-03-27 Martin Jambor PR ipa/65478 diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 24b25a0e318..bc328468fab 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -1099,7 +1099,7 @@ edge_badness (struct cgraph_edge *edge, bool dump) numerator = numerator >> 11; denominator = growth; if (callee_info->growth > 0) - denominator *= callee_info->growth; + denominator *= callee_info->growth * callee_info->growth; badness = - numerator / denominator; -- 2.30.2