https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61142
Oleg Endo <olegendo at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #34839|0 |1 is obsolete| | --- Comment #5 from Oleg Endo <olegendo at gcc dot gnu.org> --- Created attachment 34860 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34860&action=edit A set of peepholes Testing has revealed that the peephole2 patterns in attachment 34839 produce wrong code. If the patterns hit automodify mems the replacement insns of the peephole2 patterns will not contain any REG_INC notes. The peephole2 pass does not copy those notes, but it seems following passes rely on them.