Add copy_rtx call to RTL loop unroller

Programming / Compilers / GCC - rsandifo [138bc75d-0d04-0410-961f-82ee72b054a4] - 21 September 2017 07:10 EDT

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 Alan Hayward David Sherwood

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

60ca8f8 Add copy_rtx call to RTL loop unroller
gcc/ChangeLog | 6 ++++++
gcc/loop-unroll.c | 3 ++-
2 files changed, 8 insertions(+), 1 deletion(-)

Upstream: gcc.gnu.org


  • Share