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:
parent
fb05e304cd
commit
130ffea03c
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user