https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101188
--- Comment #11 from Georg-Johann Lay <gjl at gcc dot gnu.org> --- Created attachment 55217 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55217&action=edit Proposed patch for postreload.cc to record clobbers of next insn + test case. This patch solves the problem for avr and tests with no additional regressions for avr. -- rtl-optimization/101188: Don't bypass clobbers of some insns that are optimized or are optimization candidates. gcc/ PR rtl-optimization/101188 * postreload.cc (reload_cse_move2add): Record clobbers of next insn using move2add_note_store. gcc/testsuite/ PR rtl-optimization/101188 * gcc.c-torture/execute/pr101188.c: New test.
