diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-06-30 11:16:33 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-06-30 11:16:33 +0000 |
commit | ffbd194b988865c76cfe0b743b88bbdd49e5a391 (patch) | |
tree | bb613a03849cce8caab5f04bf5f098ca8a6970f4 | |
parent | cda6870fc00cbd490d382b7acb34713138411281 (diff) | |
download | gcc-ffbd194b988865c76cfe0b743b88bbdd49e5a391.tar.gz |
* loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit
code.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126141 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/loop-unroll.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 047c18ff7c3..ce5bdd0bf65 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-06-30 Jan Hubicka <jh@suse.cz> + + * loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit + code. + 2006-06-30 Thomas Neumann <tneumann@users.sourceforge.net> * ipa.c (cgraph_postorder): Cast according to the coding conventions. 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); |