Add copy_rtx call to RTL loop unroller
commit60ca8f8ec0edba0eb43bcaaa257ef46e2d68a90a
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Sep 2017 11:10:48 +0000 (21 11:10 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Sep 2017 11:10:48 +0000 (21 11:10 +0000)
treeff694be8822ad7a6a67ce2c206bab3d21f8b5dad
parent03411a7c8331735a231b8cbc72dab68d710be25b
Add copy_rtx call to RTL loop unroller

This is needed if the step is an unshared constant, like many
(const ...)s are.  Without this patch, libgfortran would fail
to build for SVE.

2017-09-21  Richard Sandiford  <richard.sandiford@linaro.org>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

gcc/
* loop-unroll.c (split_iv): Call copy_rtx on the step.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253058 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/loop-unroll.c