diff options
author | Martin Liska <mliska@suse.cz> | 2018-09-03 15:35:35 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-09-03 13:35:35 +0000 |
commit | a6b75a69dae0cfaa9085708073ebd1853e0e6102 (patch) | |
tree | 306fdefcf80f8139e2d47b85f76c73f23fb8d3f1 /gcc/tree-switch-conversion.c | |
parent | 70fc129d86eeeea6f3f04892cec75119ba97b86e (diff) |
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
Diffstat (limited to 'gcc/tree-switch-conversion.c')
-rw-r--r-- | gcc/tree-switch-conversion.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-switch-conversion.c b/gcc/tree-switch-conversion.c index d7d1c3972a0..1f543b2ecc8 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; } |