* bb-reorder.c (better_edge_p): Fix handling of uninitialized
probability.
From-SVN: r249966
+2017-07-04 Jan Hubicka <hubicka@ucw.cz>
+
+ * bb-reorder.c (better_edge_p): Fix handling of uninitialized
+ probability.
+
2017-07-04 Richard Sandiford <richard.sandiford@linaro.org>
PR tree-optimization/81292
return !cur_best_edge
|| cur_best_edge->dest->index > e->dest->index;
- if (prob > best_prob + diff_prob)
+ if (prob > best_prob + diff_prob || !best_prob.initialized_p ())
/* The edge has higher probability than the temporary best edge. */
is_better_edge = true;
else if (prob < best_prob - diff_prob)