* auto-profile.c (afdo_calculate_branch_prob): Break once has_sample is
true.
From-SVN: r223762
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.
2015-05-27 Richard Biener <rguenther@suse.de>
bool has_sample = false;
FOR_EACH_BB_FN (bb, cfun)
- if (bb->count > 0)
- has_sample = true;
+ {
+ if (bb->count > 0)
+ {
+ has_sample = true;
+ break;
+ }
+ }
if (!has_sample)
return;