public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Georg-Johann Lay <gjl@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r14-9187] AVR: Dead code removal.
Date: Mon, 26 Feb 2024 19:58:28 +0000 (GMT)	[thread overview]
Message-ID: <20240226195828.D308F3858CDB@sourceware.org> (raw)

https://gcc.gnu.org/g:9b0f7ef8bcf3b837365a2cf0af6b3ddbcdfdeb4f

commit r14-9187-g9b0f7ef8bcf3b837365a2cf0af6b3ddbcdfdeb4f
Author: Georg-Johann Lay <avr@gjlay.de>
Date:   Mon Feb 26 19:47:33 2024 +0100

    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:
---
 gcc/config/avr/avr.cc | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/gcc/config/avr/avr.cc b/gcc/config/avr/avr.cc
index d3756a2f0369..655a8e89fdce 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);
 	    }
 	}

                 reply	other threads:[~2024-02-26 19:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240226195828.D308F3858CDB@sourceware.org \
    --to=gjl@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).