]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
switch conversion: remove dead variable
authorMartin Liska <mliska@suse.cz>
Wed, 30 Nov 2022 14:01:06 +0000 (15:01 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 30 Nov 2022 14:01:47 +0000 (15:01 +0100)
gcc/ChangeLog:

* tree-switch-conversion.cc (bit_test_cluster::emit): Remove
dead variable bt_range.

gcc/tree-switch-conversion.cc

index 83ba1c1ca031f884a7e2602c7342ba9ba6ac6b35..1d75d7c7fc734ffd9549e57b0b6c98540710a033 100644 (file)
@@ -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,