From patchwork Tue Oct 1 18:46:10 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: 98225 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 915BD386102A for ; Tue, 1 Oct 2024 18:46:42 +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 [81.169.146.221]) by sourceware.org (Postfix) with ESMTPS id C8794385EC15 for ; Tue, 1 Oct 2024 18:46:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C8794385EC15 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 C8794385EC15 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=81.169.146.221 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1727808375; cv=pass; b=nix2K9vFuIjKTF45xZ/zXgY8Lq+OHgl8+90XkIYoSC4fAoOXaUDgQodWWzB03BzmnOJxc9yQ35HBqyFuWvVkmCV0X06Ju3NVmJs7TGpL1SM3Hj0Q+i/JAyn2zM50WYanEhXgqoapDdeUHHdGVzGRoGQRffsvuY3FHMAgzqfdcRI= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1727808375; c=relaxed/simple; bh=7KuwqLXEfU5ZUM0tWBN8RNtyN4K1LzHxzGpChbYCuHY=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:MIME-Version:From: To:Subject; b=clXv8rVMSupPgb0Vre2qfVvdIGINcqLJJ+WNIiitTXDi4ERd0+bp6pjU7tMlBRtqaugu7065Oh2iWUTFRVGdIMW562MnN58wM+4OYBkQFvrgA9AJrU+A7FErefsZeHeHoiCL31XVfqKYDkvGwQtGdaqYICF4gpShR4hN2V4g2iQ= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; t=1727808371; cv=none; d=strato.com; s=strato-dkim-0002; b=fkujCRheTnNW7cZEUi/ekbi74QxmOusheZ9RuXHKEFXV101usk0s6kbrmOfvBYwULE GcBq7JsKYRDmTGGeQhRQxKVYNjHfvstyt6ZigTGj0huajtMmt6pqf5+bz8cJfoUX9PzH tgd+Fhl2z9HncAZj9oAb8/OMZ3ByJcZFpPWtwLE8aOO+Hv8z9pKmHFqV9NFesCFhOWhx rNg0pQmzHLrV5z0fVd3wGw4xU6tBnZpdnsdAa0u2ZrH9kzB+1lAPVt0KmT/QcVkLCJyN wb9OQedHO9gGPjpKzez7AR+Ya98SyEanCm1MRZ5zxR/e1vUYgCeaWkkQLW0Zvj50uSxT HobQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1727808371; s=strato-dkim-0002; d=strato.com; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=JoLqY0K6sDVUxSU0IJTkcps2Jsd/hf8BYN8l6s6/4NE=; b=MbNWCH4Mc1477a547JCFSLleLgXPWTO7LfGyjni7qsaSxx9I9MqH1bD6F1UeN9MgRF Qfdih6v4Wjw+UDpxqGO3j6hyZXPHBwjCljoU964gIosFcIj+9gTZUxqsVICZYUrak0lF MJMrRNB4I5qhi1ZazfkQpAp19/Nb6drZaNE8ZPy3c6ZhBmM9zs5lfRJ1T8H8HDYzLF2F JEsGVEG3h7Zfe3qx/LT4neC/ZQbH83/km2yzKbjeDsmWfWYciHkUDgcwB2fRdRvGeMAr omk2I4rHrOkTsnvqhtbLNXBau7pOlvRt/QoXfJ6AsCNsV3f4ozA3u4kPOw+QBLE8cDyb Ln6g== 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=1727808371; s=strato-dkim-0002; d=gjlay.de; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=JoLqY0K6sDVUxSU0IJTkcps2Jsd/hf8BYN8l6s6/4NE=; b=bguXuOGIz8HgG763HknLl4mO3lRv8coirGlf/BWtoJ1Q8Tcr2I3yqqy4sYItn6HhvC 0F2e6kjaWVz92yL4+eu/PhQT2oR+XIZEZPXDo9F3TUW96Av4KN1FOGpw+aRW1WaIf8EG bwEkac4LRWWjDVkidoOHkAfEeaZUphJu5G7TOm13s4Q410LaQCqpOGmvstc+ZpUcS6Id 5pW2AuYidpYppDaoVAKzF7ErE0HTBBKj9Q5IXYt+FUIxcevfEvFqCkelKMoUOqjQ/K5C lQ0lC1heFWDOaOd3tt3Cu4PFIs0s4mYr3T2oyu66ZukTS75TcSaRO1jdfz49jEzI1FB6 W4Nw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1727808371; s=strato-dkim-0003; d=gjlay.de; h=Subject:To:From:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=JoLqY0K6sDVUxSU0IJTkcps2Jsd/hf8BYN8l6s6/4NE=; b=ZgpMZXVKUy/NNk2oIqpNYUaFf/jqwzdVN6sc8HtJYO2vvyLfvuTWYFFOq44dV+3kJ2 wSbWb7h8OATgi+1hevDQ== X-RZG-AUTH: ":LXoWVUeid/7A29J/hMvvT3koxZnKXKoq0dKoR0vetzhr/2IDlGFRklUq" Received: from [192.168.2.102] by smtp.strato.de (RZmta 51.2.8 DYNA|AUTH) with ESMTPSA id x2e25d091IkAsVt (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Tue, 1 Oct 2024 20:46:10 +0200 (CEST) Message-ID: Date: Tue, 1 Oct 2024 20:46:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Georg-Johann Lay Content-Language: en-US To: "gcc-patches@gcc.gnu.org" , Denis Chertykov Subject: [patch,avr,applied] Drop a superfluous sub-condition in avr_out_compare. X-Spam-Status: No, score=-11.4 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 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~patchwork=sourceware.org@gcc.gnu.org Applied as obvious. Johann --- AVR: avr.cc - Drop a superfluous sub-condition in avr_out_compare. In avr.cc::avr_out_compare() there is this condition: if (n_bytes == 4 && eqne_p && AVR_HAVE_ADIW && REGNO (xreg) >= REG_22 && (xval == const0_rtx || (IN_RANGE (avr_int16 (xval, 2), 0, 63) && eqne_p && reg_unused_after (insn, xreg)))) where the 2nd sub-expression "&& eqne_p" is superfluous. gcc/ * config/avr/avr.cc (avr_out_compare): Drop superfluous sub-condition. diff --git a/gcc/config/avr/avr.cc b/gcc/config/avr/avr.cc index c0bf1320fdd..92013c3845d 100644 --- a/gcc/config/avr/avr.cc +++ b/gcc/config/avr/avr.cc @@ -6142,7 +6142,6 @@ avr_out_compare (rtx_insn *insn, rtx *xop, int *plen) && REGNO (xreg) >= REG_22 && (xval == const0_rtx || (IN_RANGE (avr_int16 (xval, 2), 0, 63) - && eqne_p && reg_unused_after (insn, xreg)))) { xop[2] = avr_word (xval, 2);