https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79430
--- Comment #84 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Mon May 1 09:50:59 2017 New Revision: 247429 URL: https://gcc.gnu.org/viewcvs?rev=247429&root=gcc&view=rev Log: PR target/79430 * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also check for stack push/pop autoinc. * config/i386/i386.c (ix86_agi_dependent): Return false if the only reason why modified_in_p returned true is that addr is SP based and set_insn is a push or pop. Modified: trunk/gcc/ChangeLog trunk/gcc/config/i386/i386.c trunk/gcc/rtlanal.c