Commit 650a202b by Aditya Kumar Committed by Jeff Law

auto-profile.c (afdo_calculate_branch_prob): Break once has_sample is true.

	* auto-profile.c (afdo_calculate_branch_prob): Break once has_sample is
	true.

From-SVN: r223762
parent ec09a694
2015-05-22 Aditya Kumar <hiraditya@msn.com> 2015-05-22 Aditya Kumar <hiraditya@msn.com>
* auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
is true.
* statistics.c (statistics_fini_pass): Print pass name. * statistics.c (statistics_fini_pass): Print pass name.
2015-05-27 Richard Biener <rguenther@suse.de> 2015-05-27 Richard Biener <rguenther@suse.de>
......
...@@ -1365,8 +1365,13 @@ afdo_calculate_branch_prob (bb_set *annotated_bb, edge_set *annotated_edge) ...@@ -1365,8 +1365,13 @@ afdo_calculate_branch_prob (bb_set *annotated_bb, edge_set *annotated_edge)
bool has_sample = false; bool has_sample = false;
FOR_EACH_BB_FN (bb, cfun) FOR_EACH_BB_FN (bb, cfun)
{
if (bb->count > 0) if (bb->count > 0)
{
has_sample = true; has_sample = true;
break;
}
}
if (!has_sample) if (!has_sample)
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment