PR rtl-optimization/80500
commitcbebc3ae4e329e9e3518169b2e652442535efc22
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Apr 2017 07:27:01 +0000 (25 07:27 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Apr 2017 07:27:01 +0000 (25 07:27 +0000)
treeb0b530909370b7365616489af776c09b7d34fdc7
parent68abe534786acd06bb492a70b24790bf3572f9b8
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@247126 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/loop-unroll.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr80500.c [new file with mode: 0644]