PR ipa/65076
* ipa-inline.c (edge_badness): Add combined size to the denominator.
From-SVN: r221859
+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>
* omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
/* When profile is available. Compute badness as:
time_saved * caller_count
- goodness = ---------------------------------
- growth_of_caller * overall_growth
+ goodness = -------------------------------------------------
+ growth_of_caller * overall_growth * combined_size
badness = - goodness
overall_growth += 256 * 256 - 256;
denominator *= overall_growth;
}
+ denominator *= inline_summaries->get (caller)->self_size + growth;
badness = - numerator / denominator;