https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80500
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Apr 25 07:27:47 2017 New Revision: 247127 URL: https://gcc.gnu.org/viewcvs?rev=247127&root=gcc&view=rev Log: PR rtl-optimization/80500 * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on sum's initial value. * gcc.dg/pr80500.c: New test. Added: branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr80500.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/loop-unroll.c branches/gcc-7-branch/gcc/testsuite/ChangeLog