[gcc(refs/users/marxin/heads/switch-lowering-fix-profile)] Fix formatting.
Martin Liska
marxin@gcc.gnu.org
Tue Jan 25 16:00:46 GMT 2022
https://gcc.gnu.org/g:41ab48b2cba4a71f725d34a516ef935d5f49dc14
commit 41ab48b2cba4a71f725d34a516ef935d5f49dc14
Author: Martin Liska <mliska@suse.cz>
Date: Mon Jan 24 16:03:33 2022 +0100
Fix formatting.
Diff:
---
gcc/tree-switch-conversion.cc | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/gcc/tree-switch-conversion.cc b/gcc/tree-switch-conversion.cc
index 7607f5ae019..7aeb12c5ec9 100644
--- a/gcc/tree-switch-conversion.cc
+++ b/gcc/tree-switch-conversion.cc
@@ -2356,10 +2356,9 @@ switch_decision_tree::emit_case_nodes (basic_block bb, tree index,
redirect_edge_succ (single_pred_edge (test_bb),
single_succ_edge (bb)->dest);
-
- profile_probability right_prob = profile_probability::never ();
- if (node->m_right)
- right_prob = node->m_right->m_c->m_subtree_prob;
+ profile_probability right_prob = profile_probability::never ();
+ if (node->m_right)
+ right_prob = node->m_right->m_c->m_subtree_prob;
p = ((right_prob + default_prob.apply_scale (1, 2))
/ (node->m_c->m_subtree_prob + default_prob));
test_bb->count = bb->count.apply_probability (p);
More information about the Gcc-cvs
mailing list