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
This commit is contained in:
Jan Hubicka 2015-03-30 04:00:56 +02:00 committed by Jan Hubicka
parent b9b5584df6
commit 12daa22a2c
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2015-03-27 Jan Hubicka <hubicka@ucw.cz>
PR ipa/65076
* ipa-inline.c (edge_badness): Base denominator on callee's
grwoth squared.
2015-03-27 Martin Jambor <mjambor@suse.cz>
PR ipa/65478

View File

@ -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;