From patchwork Mon Feb 26 19:57:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 1904697 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gjlay.de header.i=@gjlay.de header.a=rsa-sha256 header.s=strato-dkim-0002 header.b=IxAy7UD6; dkim=pass header.d=gjlay.de header.i=@gjlay.de header.a=ed25519-sha256 header.s=strato-dkim-0003 header.b=S6drNBkK; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TkBGt1Ryhz1yX4 for ; Tue, 27 Feb 2024 06:57:26 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2D9D43858409 for ; Mon, 26 Feb 2024 19:57:24 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [85.215.255.21]) by sourceware.org (Postfix) with ESMTPS id 9DDC63858CDB for ; Mon, 26 Feb 2024 19:57:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9DDC63858CDB Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gjlay.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=gjlay.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9DDC63858CDB Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=85.215.255.21 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708977426; cv=pass; b=ns4DgVxDrhZx25B2SU42Ut6hJjxqTOgfnpHciBhC/DwTlZPtr9yeAG0CCqza6jI73OJUD/wHYe2BNGoycyDM4cMEIL9lNTxfXMlcfFCXkQwCmyWJ5l/I2XRDuEA0EbSpqNgjK6TWWwiqm+fy4IWG7NJKZCpC7mlGFLY78JmNHYU= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1708977426; c=relaxed/simple; bh=hcRNUtMrUTDw//70QLxFeeF0Xkyq7GnLrq0IH8MS2Go=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:MIME-Version:From: To:Subject; b=JYlsB8wNzITao1V5eTdxlGxeULPw1LbaLgBcw8m2TEiZGd/kuEQ4jh9UazVg2UKTXBV4bMK9+TkNpq4//7rR8S6ISnES7Zb3kHaZYgefymvUUMaQ9JWKQD+fApT/cm7mrkQJVEk5Vhlg/ATURxa5c/X9/pbQYOt6Rj2vH6XIJ80= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; t=1708977423; cv=none; d=strato.com; s=strato-dkim-0002; b=EGXmmeKzABhWDDmuO9WqyGDfyUK9cqOMuBg3eCYKitInBWB1SFrYTGmQsMzNEjwIVB eW9oiVt5pzOI7CUlsTq1AtAHB9ZiYxW7dtQAGUA+lFGmiVpbvRu1l06xuevUj0H7SR1Y V/dBLPRInbFgGWgwdjFs8j6ZWiIhCsIXeb+xu5NhxCxvUjr5Y/ZF29RVigIH+9Qb0TXN KzJSrKqron1HoOdOuAiXk4DH/fYzimpkYwkDDcm84IN4ohPmlFheOVykgWPJ4c8v6ezx g4J+ySF+jeck2NZYR++Xc5i+mk/4nRUNqUIpUm3d8J/nicJikO0NqNtTxK7LAfYLQHgp uETA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1708977423; s=strato-dkim-0002; d=strato.com; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=y3PXWzFNRG/Qd7L2NC6o1NoMvIRC/9IRolZ7by+YnPQ=; b=PPi9BNdUeQN7s6Np3kk1hFZcmB6Zcx2uB3a8h5vNfU6OoKuhENJ3w9k5tVLC1kH92t nIBFN0OMkE4OeubHnRts2c6Zf2QgS3pt1Z9v5uxhYF4yiN2631CarYzNCfYZ2k5VqrtR jYzzNBewQKt43th5TB72qLUh749HyB3MTpb8Pj4r3l8QCtcgD/CZn7M7zV1JSe48b/Os CC/3NryEQgfVLtjpP4NH+VTnwNAMYGroEBTxpXNFh32Aa3+ovoy+1pZUI4VQZrGzEh/P wUmNOHT36JetsMLiPSRrMERA3V+WVMpq3i3isqFYqhotLtp38zw2+PNqHxfcfqqHbWX9 hJkQ== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1708977423; s=strato-dkim-0002; d=gjlay.de; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=y3PXWzFNRG/Qd7L2NC6o1NoMvIRC/9IRolZ7by+YnPQ=; b=IxAy7UD6xZh0aUFwbmLw5iFeUdXLB8/mJ0ee8bdLiNyLsvPaO0tqOMTmpvlo71xtCT c+/UJBaI30e4pwnA+00W/lsvZd3Cr7tGQitSpDQxPIb+SEmG0NWb+a0BZkExLfhoVUGf KGHEDWGfPl7TJmIbTuIawLmMsPlge80JZ2T+pOf6UupfnWHsQkhPmBPytEBL8cioYpNn aXCTIIc4lWJbSYqJnTgMaKP0MM0HrABnE+V+rn5Sm00kVCg4L/drGjFVb/M0kvcwf4M9 mow7qhG9InsVZjl1jvWhPR9XIZd9xcsLbe6h4Ey63tDKg3RXNQ+VbfsHAVTcH72DZvRN K52Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1708977423; s=strato-dkim-0003; d=gjlay.de; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=y3PXWzFNRG/Qd7L2NC6o1NoMvIRC/9IRolZ7by+YnPQ=; b=S6drNBkK64Ef7VzA2AdEyq95MkdPRQeLNXiSxNKKTqKl6CxKmz8E2v5stVeGHoiL34 iOIZpEm8/1unF5MxO9BQ== X-RZG-AUTH: ":LXoWVUeid/7A29J/hMvvT3koxZnKT7Qq0xotTetVnKkSgcSjpmy9KwoMJ/K0VA==" Received: from [192.168.2.102] by smtp.strato.de (RZmta 50.0.4 DYNA|AUTH) with ESMTPSA id z6051601QJv2HtC (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Mon, 26 Feb 2024 20:57:02 +0100 (CET) Message-ID: <1df3cf07-e16a-42de-b6e0-ce38cc01bbd9@gjlay.de> Date: Mon, 26 Feb 2024 20:57:02 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Georg-Johann Lay To: gcc-patches@gcc.gnu.org Subject: [avr,patch,applied] Remove some dead code X-Spam-Status: No, score=-10.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org This code was dead in the block where it lived, because avr_adiw_reg_p() is only true when ADIW and SBIW are available -- which is not the case for AVR_TINY. Johann --- AVR: Dead code removal. gcc/ * config/avr/avr.cc (avr_out_compare) [AVR_TINY]: Remove code in an "if avr_adiw_reg_p()" block that's dead for AVR_TINY. diff --git a/gcc/config/avr/avr.cc b/gcc/config/avr/avr.cc index d3756a2f036..655a8e89fdc 100644 --- a/gcc/config/avr/avr.cc +++ b/gcc/config/avr/avr.cc @@ -6291,10 +6291,7 @@ avr_out_compare (rtx_insn *insn, rtx *xop, int *plen) && (val8 == 0 || reg_unused_after (insn, xreg))) { - if (AVR_TINY) - avr_asm_len (TINY_SBIW (%A0, %B0, %1), xop, plen, 2); - else - avr_asm_len ("sbiw %0,%1", xop, plen, 1); + avr_asm_len ("sbiw %0,%1", xop, plen, 1); i++; continue; @@ -6305,9 +6302,7 @@ avr_out_compare (rtx_insn *insn, rtx *xop, int *plen) && compare_eq_p (insn) && reg_unused_after (insn, xreg)) { - return AVR_TINY - ? avr_asm_len (TINY_ADIW (%A0, %B0, %n1), xop, plen, 2) - : avr_asm_len ("adiw %0,%n1", xop, plen, 1); + return avr_asm_len ("adiw %0,%n1", xop, plen, 1); } }