From: Jan Hubicka Date: Mon, 30 Mar 2015 02:00:56 +0000 (+0200) Subject: re PR ipa/65076 (16% tramp3d-v4.cpp compile time regression) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=12daa22a2c4e3a9c1eba6740bdc2b67d7b7b181e;p=gcc.git 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 --- 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;