aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-11-30 15:01:06 +0100
committerMartin Liska <mliska@suse.cz>2022-11-30 15:01:47 +0100
commitd0a3d55ae4a2656f7c306c9345ba14853b4075d5 (patch)
treed929127be5fec05a97af1debd23d754f4d9ed6aa
parente2e272ba76b3bfda4a04b0c89ba984f6f6f2d7ea (diff)
downloadgcc-d0a3d55ae4a2656f7c306c9345ba14853b4075d5.zip
gcc-d0a3d55ae4a2656f7c306c9345ba14853b4075d5.tar.gz
gcc-d0a3d55ae4a2656f7c306c9345ba14853b4075d5.tar.bz2
switch conversion: remove dead variable
gcc/ChangeLog: * tree-switch-conversion.cc (bit_test_cluster::emit): Remove dead variable bt_range.
-rw-r--r--gcc/tree-switch-conversion.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/tree-switch-conversion.cc b/gcc/tree-switch-conversion.cc
index 83ba1c1..1d75d7c 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,