From patchwork Wed Nov 30 14:02:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 27812 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp940384wrr; Wed, 30 Nov 2022 06:02:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf4gKjaZF62O13KthIIrhmJElgHr3/VjHzSm683l5bHnRPXA++aYLEIcHt3gIIxIjw3PGVxp X-Received: by 2002:a17:907:6e12:b0:730:631c:40b7 with SMTP id sd18-20020a1709076e1200b00730631c40b7mr51807874ejc.336.1669816977062; Wed, 30 Nov 2022 06:02:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669816977; cv=none; d=google.com; s=arc-20160816; b=XDHgVqvlmkl1TEWtFuNW7Iw2lryEXaMnypfgp7eoTBUh2AisT3PGJW5vRMDAkgx4vA cXRul5O+6y0k3eMf2ZKhcbzCyIMk2olJloZL6HDPlRjwJUVmUm5p3npQIEOVyVdLptG0 tVbAmQwp/83sn4+Ij1JMmMntoFRLBN4O+Mv2qI4jTCsuO9RgjUzT8vV+pymGGfMW1Fic Am3HBaV964smSsThC5xX8nMd+ZEVd3bSDUyYvX10ZfxC8ugpvLqJng//K2HCyTkyaBIN 94W9DRbx70MRc4sAgHW19RJDsSlPAQLzU9OTfwn5eVpe9/ycbd9UN7rxBliPdIJhfzXW V5ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :content-language:to:subject:from:user-agent:mime-version:date :message-id:dkim-signature:dkim-signature:dmarc-filter:delivered-to; bh=wzfOxIjvTZSkIJz8NeZfklGORceKLr+bJtNrmDM+Z7Y=; b=IJPEFsbQVWpcAaTc1jZaT1G/XsCEH+zZMt1pDIWig+HhaHLLZLUxYYLRTyt9qGooU6 BiuXi0QdJXuebMjOsJfrtANwMA7ZTAW/oBnlRb/PXfP7UrjHfBHmM5//fdsaQFJGGY6+ Y6nbBhqCsgjZ7u1j0MyMFXJWqWSeWDiOlsKhwd2UDNjUCjdObEP/11kGegQi+xs+sIQS lrjivCxQvGack9Ycx3PoMEoPxLpL4IvhZY75PslMFqEyRFXMwAsERaloNd694edWDsoi RaEhxhVPvRWtgmrYR8UkiFfNFZ6uBOpH2zO94Q/O2CKL7H+KoQQdliVG9EuMo6B/EMgm oKug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="h2o/aj4D"; dkim=neutral (no key) header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id u20-20020aa7d994000000b0046a8fe6d173si1199234eds.456.2022.11.30.06.02.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Nov 2022 06:02:57 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="h2o/aj4D"; dkim=neutral (no key) header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2F0873852C6F for ; Wed, 30 Nov 2022 14:02:33 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by sourceware.org (Postfix) with ESMTPS id E33FB3855172 for ; Wed, 30 Nov 2022 14:02:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E33FB3855172 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 1EDC01F8D4 for ; Wed, 30 Nov 2022 14:02:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1669816929; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wzfOxIjvTZSkIJz8NeZfklGORceKLr+bJtNrmDM+Z7Y=; b=h2o/aj4DxsT1VF6QwS4RPMAYcWu1rWCoDIkKtq8bTzNeMx8OtlTBHWSpclrcwWd28gziMg Ua/HFZF8S3Ro8D9aON3TwqZtV1I7PD5zqDt/dGkjaIrzIB2Oo6JNKW+wBIjGvp3w3VBeMw rIEkj5tB8OWCtN12WxeV/3zmZ39ILWo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1669816929; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wzfOxIjvTZSkIJz8NeZfklGORceKLr+bJtNrmDM+Z7Y=; b=SLTVVQuZweoIegJEZMJ+yUHFgVaxNI8o1rdSWObl0x+dSWogEI8ndMgWh90bTmhprEi/NH pBAhdSAvSweM/EAQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 101D313A70 for ; Wed, 30 Nov 2022 14:02:09 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Yv30AmFih2NmcQAAMHmgww (envelope-from ) for ; Wed, 30 Nov 2022 14:02:09 +0000 Message-ID: Date: Wed, 30 Nov 2022 15:02:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH (pushed)] switch conversion: remove dead variable To: gcc-patches@gcc.gnu.org Content-Language: en-US X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750930006861393241?= X-GMAIL-MSGID: =?utf-8?q?1750930006861393241?= 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,