https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85645
--- Comment #16 from Segher Boessenkool <segher at gcc dot gnu.org> --- Author: segher Date: Mon Aug 13 17:05:48 2018 New Revision: 263509 URL: https://gcc.gnu.org/viewcvs?rev=263509&root=gcc&view=rev Log: Backport from mainline 2018-05-09 Segher Boessenkool <seg...@kernel.crashing.org> PR rtl-optimization/85645 * regrename.c (build_def_use): Also kill the chains that include the destination of a REG_CFA_REGISTER note. PR rtl-optimization/85645 * regcprop.c (copyprop_hardreg_forward_1): Don't propagate into an insn that has a REG_CFA_REGISTER note. Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/regcprop.c branches/gcc-7-branch/gcc/regrename.c