[avr,applied] Drop a superfluous sub-condition in avr_out_compare.

Message ID f29e4681-40bd-4be1-bc46-1426f488e00d@gjlay.de
State New
Headers
Series [avr,applied] Drop a superfluous sub-condition in avr_out_compare. |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 fail Patch failed to apply

Commit Message

Georg-Johann Lay Oct. 1, 2024, 6:46 p.m. UTC
  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.
  

Patch

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