public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH (pushed)] switch conversion: remove dead variable
@ 2022-11-30 14:02 Martin Liška
  0 siblings, 0 replies; only message in thread
From: Martin Liška @ 2022-11-30 14:02 UTC (permalink / raw)
  To: gcc-patches

gcc/ChangeLog:

	* tree-switch-conversion.cc (bit_test_cluster::emit): Remove
	dead variable bt_range.
---
 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,
-- 
2.38.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-30 14:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-30 14:02 [PATCH (pushed)] switch conversion: remove dead variable Martin Liška

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