aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop-unroll.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2007-06-30 13:16:33 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2007-06-30 11:16:33 +0000
commit2ed2257828a1664c503c4e906181da247acc81a1 (patch)
treebb613a03849cce8caab5f04bf5f098ca8a6970f4 /gcc/loop-unroll.c
parentc5274326e08088f3fddff1f94e035a0352362fd0 (diff)
downloadgcc-2ed2257828a1664c503c4e906181da247acc81a1.zip
gcc-2ed2257828a1664c503c4e906181da247acc81a1.tar.gz
gcc-2ed2257828a1664c503c4e906181da247acc81a1.tar.bz2
loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit code.
* loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit code. From-SVN: r126141
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 77d454f..3e20fcb 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);