Commit a6b75a69 by Martin Liska Committed by Martin Liska

Fix thinko (PR tree-optimization/87201).

2018-09-03  Martin Liska  <mliska@suse.cz>

	PR tree-optimization/87201
	* tree-switch-conversion.c (switch_decision_tree::balance_case_nodes):
	Fix parenthesis in an expression.

From-SVN: r264058
parent 70fc129d
2018-09-03 Martin Liska <mliska@suse.cz>
PR tree-optimization/87201
* tree-switch-conversion.c (switch_decision_tree::balance_case_nodes):
Fix parenthesis in an expression.
2018-09-03 Richard Biener <rguenther@suse.de>
PR tree-optimization/87197
......
......@@ -1942,8 +1942,8 @@ switch_decision_tree::balance_case_nodes (case_tree_node **head,
/* Skip nodes while their probability does not reach
that amount. */
prob -= (*npp)->m_c->m_prob;
if (prob.initialized_p ()
&& (prob < pivot_prob || ! (*npp)->m_right))
if ((prob.initialized_p () && prob < pivot_prob)
|| ! (*npp)->m_right)
break;
npp = &(*npp)->m_right;
}
......
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