https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78669
--- Comment #5 from Bernd Schmidt <bernds at gcc dot gnu.org> --- Author: bernds Date: Mon Dec 12 13:29:48 2016 New Revision: 243551 URL: https://gcc.gnu.org/viewcvs?rev=243551&root=gcc&view=rev Log: PR rtl-optimization/78669 * ira.c (combine_and_move_insns): When deleting an insn, clear the replace flag for all used regs in that insn. PR rtl-optimization/78669 * gcc.target/i386/pr78669.c: New test. Added: trunk/gcc/testsuite/gcc.target/i386/pr78669.c Modified: trunk/gcc/ChangeLog trunk/gcc/ira.c trunk/gcc/testsuite/ChangeLog