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;