summaryrefslogtreecommitdiff
path: root/gcc/loop-unroll.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/loop-unroll.c')
-rw-r--r--gcc/loop-unroll.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/loop-unroll.c b/gcc/loop-unroll.c
index 77d454f35bc..3e20fcb4b0d 100644
--- a/gcc/loop-unroll.c
+++ b/gcc/loop-unroll.c
@@ -1025,6 +1025,7 @@ unroll_loop_runtime_iterations (struct loop *loop)
init_code = get_insns ();
end_sequence ();
+ unshare_all_rtl_in_chain (init_code);
/* Precondition the loop. */
split_edge_and_insert (loop_preheader_edge (loop), init_code);