From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 5BA5D385AC3A; Tue, 25 Jan 2022 16:00:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5BA5D385AC3A Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/switch-lowering-fix-profile)] Fix formatting. X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/users/marxin/heads/switch-lowering-fix-profile X-Git-Oldrev: 192ac7a1ff2d248e508055a048b7972a485edda2 X-Git-Newrev: 41ab48b2cba4a71f725d34a516ef935d5f49dc14 Message-Id: <20220125160046.5BA5D385AC3A@sourceware.org> Date: Tue, 25 Jan 2022 16:00:46 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2022 16:00:46 -0000 https://gcc.gnu.org/g:41ab48b2cba4a71f725d34a516ef935d5f49dc14 commit 41ab48b2cba4a71f725d34a516ef935d5f49dc14 Author: Martin Liska 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);