From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 2E255385455C; Wed, 30 Nov 2022 14:02:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E255385455C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669816940; bh=B7vV90eywGTvTGrQfqgVGstgXiBWp8FbSnO3UkmRfj4=; h=From:To:Subject:Date:From; b=SoDDp2BVUZlqaPO9v6a4OIiu7TcOgJOsTE98Mqjh03U6JTyn6KTr8nHnk2CP897n6 Fzk9CrjTv/3Eq71LRnfBgljOZiiZgPLdEcYvG+yN8W5nIumx2bMG4JIFMsIXSIOuM/ ehCsAG0ZM3l3yk44nVC6yIS3REb16RkOELIQuQ3E= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-4412] switch conversion: remove dead variable X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/heads/master X-Git-Oldrev: e2e272ba76b3bfda4a04b0c89ba984f6f6f2d7ea X-Git-Newrev: d0a3d55ae4a2656f7c306c9345ba14853b4075d5 Message-Id: <20221130140220.2E255385455C@sourceware.org> Date: Wed, 30 Nov 2022 14:02:20 +0000 (GMT) List-Id: https://gcc.gnu.org/g:d0a3d55ae4a2656f7c306c9345ba14853b4075d5 commit r13-4412-gd0a3d55ae4a2656f7c306c9345ba14853b4075d5 Author: Martin Liska Date: Wed Nov 30 15:01:06 2022 +0100 switch conversion: remove dead variable gcc/ChangeLog: * tree-switch-conversion.cc (bit_test_cluster::emit): Remove dead variable bt_range. Diff: --- gcc/tree-switch-conversion.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/gcc/tree-switch-conversion.cc b/gcc/tree-switch-conversion.cc index 83ba1c1ca03..1d75d7c7fc7 100644 --- a/gcc/tree-switch-conversion.cc +++ b/gcc/tree-switch-conversion.cc @@ -1518,7 +1518,6 @@ bit_test_cluster::emit (tree index_expr, tree index_type, tree minval = get_low (); tree maxval = get_high (); - unsigned HOST_WIDE_INT bt_range = get_range (minval, maxval); /* Go through all case labels, and collect the case labels, profile counts, and other information we need to build the branch tests. */ @@ -1676,7 +1675,6 @@ bit_test_cluster::emit (tree index_expr, tree index_type, { profile_probability prob = test[k].prob / (subtree_prob + default_prob); subtree_prob -= test[k].prob; - bt_range -= test[k].bits; tmp = wide_int_to_tree (word_type_node, test[k].mask); tmp = fold_build2_loc (loc, BIT_AND_EXPR, word_type_node, csui, tmp); tmp = fold_build2_loc (loc, NE_EXPR, boolean_type_node,