]> git.ipfire.org Git - thirdparty/gcc.git/commit
AVR: avr.cc - Drop a superfluous sub-condition in avr_out_compare.
authorGeorg-Johann Lay <avr@gjlay.de>
Tue, 1 Oct 2024 18:36:22 +0000 (20:36 +0200)
committerGeorg-Johann Lay <avr@gjlay.de>
Tue, 1 Oct 2024 18:42:09 +0000 (20:42 +0200)
commitf72b1a44ff582041b02d5abe0a6c8556057e6183
treeef258ee6074615cfd846b59018fdb70b7333538d
parent5e41e8fd86794319f05eb1d76822021786b81a91
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.
gcc/config/avr/avr.cc