public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-9187] AVR: Dead code removal.
@ 2024-02-26 19:58 Georg-Johann Lay
  0 siblings, 0 replies; only message in thread
From: Georg-Johann Lay @ 2024-02-26 19:58 UTC (permalink / raw)
  To: gcc-cvs

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);
 	    }
 	}

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

only message in thread, other threads:[~2024-02-26 19:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-26 19:58 [gcc r14-9187] AVR: Dead code removal Georg-Johann Lay

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