re PR ipa/65076 (16% tramp3d-v4.cpp compile time regression)
PR ipa/65076 * ipa-inline.c (edge_badness): Add combined size to the denominator. From-SVN: r221859
This commit is contained in:
parent
a3d94329e9
commit
133a84abb6
|
@ -1,3 +1,8 @@
|
||||||
|
2015-04-03 Jan Hubicka <hubicka@ucw.cz>
|
||||||
|
|
||||||
|
PR ipa/65076
|
||||||
|
* ipa-inline.c (edge_badness): Add combined size to the denominator.
|
||||||
|
|
||||||
2015-04-03 Jakub Jelinek <jakub@redhat.com>
|
2015-04-03 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
|
* omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
|
||||||
|
|
|
@ -1077,8 +1077,8 @@ edge_badness (struct cgraph_edge *edge, bool dump)
|
||||||
/* When profile is available. Compute badness as:
|
/* When profile is available. Compute badness as:
|
||||||
|
|
||||||
time_saved * caller_count
|
time_saved * caller_count
|
||||||
goodness = ---------------------------------
|
goodness = -------------------------------------------------
|
||||||
growth_of_caller * overall_growth
|
growth_of_caller * overall_growth * combined_size
|
||||||
|
|
||||||
badness = - goodness
|
badness = - goodness
|
||||||
|
|
||||||
|
@ -1167,6 +1167,7 @@ edge_badness (struct cgraph_edge *edge, bool dump)
|
||||||
overall_growth += 256 * 256 - 256;
|
overall_growth += 256 * 256 - 256;
|
||||||
denominator *= overall_growth;
|
denominator *= overall_growth;
|
||||||
}
|
}
|
||||||
|
denominator *= inline_summaries->get (caller)->self_size + growth;
|
||||||
|
|
||||||
badness = - numerator / denominator;
|
badness = - numerator / denominator;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue