Add copy_rtx call to RTL loop unroller
authorRichard Sandiford <richard.sandiford@linaro.org>
Thu, 21 Sep 2017 11:10:48 +0000 (11:10 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 21 Sep 2017 11:10:48 +0000 (11:10 +0000)
commit6b1237e30840dac66ae8d16507581c948c76c52c
treeff694be8822ad7a6a67ce2c206bab3d21f8b5dad
parent2e89be4857edfbbcfcca261079c868d70341feb1
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.

Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r253058
gcc/ChangeLog
gcc/loop-unroll.c