public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/switch-lowering-fix-profile)] Fix formatting.
@ 2022-01-25 16:00 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-01-25 16:00 UTC (permalink / raw)
  To: gcc-cvs

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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-25 16:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-25 16:00 [gcc(refs/users/marxin/heads/switch-lowering-fix-profile)] Fix formatting Martin Liska

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).