https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69737
--- Comment #6 from Segher Boessenkool <segher at gcc dot gnu.org> --- Author: segher Date: Thu Nov 9 10:21:06 2017 New Revision: 254564 URL: https://gcc.gnu.org/viewcvs?rev=254564&root=gcc&view=rev Log: Backport from mainline 2017-11-01 Segher Boessenkool <seg...@kernel.crashing.org> PR rtl-optimization/64682 PR rtl-optimization/69567 PR rtl-optimization/69737 PR rtl-optimization/82683 * combine.c (distribute_notes) <REG_DEAD>: If the new I2 sets the same register mentioned in the note, drop the note, unless it came from I3, in which case it should go to I3 again. Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/combine.c