OSDN Git Service

* loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 30 Jun 2007 11:16:33 +0000 (11:16 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 30 Jun 2007 11:16:33 +0000 (11:16 +0000)
code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126141 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/loop-unroll.c

index 047c18f..ce5bdd0 100644 (file)
@@ -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.
index 77d454f..3e20fcb 100644 (file)
@@ -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);