re PR rtl-optimization/80500 (ICE: internal consistency failure (error: invalid rtl...
authorJakub Jelinek <jakub@redhat.com>
Tue, 25 Apr 2017 07:27:01 +0000 (09:27 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 25 Apr 2017 07:27:01 +0000 (09:27 +0200)
commit392594621391ab6dd6f6ccd4ad8a77b883c84a5b
treeb0b530909370b7365616489af776c09b7d34fdc7
parent904588d85412c65250c7f6fe9947714b2c590b8b
re PR rtl-optimization/80500 (ICE: internal consistency failure (error: invalid rtl sharing found in the insn))

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.

From-SVN: r247126
gcc/ChangeLog
gcc/loop-unroll.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr80500.c [new file with mode: 0644]