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:
parent
b9b5584df6
commit
12daa22a2c
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue