https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121794
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Georg-Johann Lay <[email protected]>: https://gcc.gnu.org/g:be6142b9edfe1e496b7e5f2be0eeb438ef7d3050 commit r15-10289-gbe6142b9edfe1e496b7e5f2be0eeb438ef7d3050 Author: Georg-Johann Lay <[email protected]> Date: Thu Sep 4 22:03:31 2025 +0200 AVR: target/121794 - Invoke zero_reg less. There are some cases where involing zero_reg is not needed and where there are other sequences with the same efficiency. An example is to use SBCI R,0 instead of SBC R,__zero_reg__ when R >= R16. This may turn out to be better for small ISRs. PR target/121794 gcc/ * config/avr/avr.cc (avr_out_compare): Only use zero_reg when there is no other sequence of the same length. (avr_out_plus_ext): Same. (avr_out_plus_1): Same. (cherry picked from commit e3d14112b266479da9f8fd9c304e0ae15bf0ad25)
