Hi.

Thinko fix causing many test-suite failures.

Patch can bootstrap on x86_64-linux-gnu and survives regression tests.

Ready to be installed?
Martin

gcc/ChangeLog:

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

        PR tree-optimization/87201
        * tree-switch-conversion.c (switch_decision_tree::balance_case_nodes):
        Fix parenthesis in an expression.
---
 gcc/tree-switch-conversion.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


diff --git a/gcc/tree-switch-conversion.c b/gcc/tree-switch-conversion.c
index d7d1c3972a0..ff2c417dc85 100644
--- a/gcc/tree-switch-conversion.c
+++ b/gcc/tree-switch-conversion.c
@@ -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;
 	    }

Reply via email to