Add braces to a condition in predict.c (PR middle-end/77574)

Martin Liska  <mliska@suse.cz>

	PR middle-end/77574
	* predict.c (force_edge_cold): Add braces to a condition.

Co-Authored-By: Martin Liska <mliska@suse.cz>

From-SVN: r240128
This commit is contained in:
Bernd Edlinger 2016-09-14 07:18:53 +00:00 committed by Martin Liska
parent fb05e304cd
commit 130ffea03c
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
Martin Liska <mliska@suse.cz>
PR middle-end/77574
* predict.c (force_edge_cold): Add braces to a condition.
2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR rtl-optimization/77289

View File

@ -3723,7 +3723,7 @@ force_edge_cold (edge e, bool impossible)
int prob_scale = REG_BR_PROB_BASE;
/* If edge is already improbably or cold, just return. */
if (e->probability <= impossible ? PROB_VERY_UNLIKELY : 0
if (e->probability <= (impossible ? PROB_VERY_UNLIKELY : 0)
&& (!impossible || !e->count))
return;
FOR_EACH_EDGE (e2, ei, e->src->succs)