public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/users/marxin/heads/switch-lowering-fix-profile)] Fix formatting.
Date: Tue, 25 Jan 2022 16:00:46 +0000 (GMT)	[thread overview]
Message-ID: <20220125160046.5BA5D385AC3A@sourceware.org> (raw)

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


                 reply	other threads:[~2022-01-25 16:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220125160046.5BA5D385AC3A@sourceware.org \
    --to=marxin@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).