OSDN Git Service

PR debug/46931
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Dec 2010 20:20:29 +0000 (20:20 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Dec 2010 20:20:29 +0000 (20:20 +0000)
* tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Update
SSA before removing dead stmts.

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

gcc/ChangeLog
gcc/tree-vect-loop-manip.c

index 71629fa..41f0c8f 100644 (file)
@@ -1,3 +1,9 @@
+2010-12-28  Richard Guenther  <rguenther@suse.de>
+
+       PR debug/46931
+       * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Update
+       SSA before removing dead stmts.
+
 2010-12-28  H.J. Lu  <hongjiu.lu@intel.com>
            Uros Bizjak  <ubizjak@gmail.com>
 
index 6ecd304..28b75f1 100644 (file)
@@ -1442,6 +1442,9 @@ slpeel_tree_peel_loop_to_edge (struct loop *loop,
   if (update_first_loop_count)
     slpeel_make_loop_iterate_ntimes (first_loop, first_niters);
 
+  BITMAP_FREE (definitions);
+  delete_update_ssa ();
+
   /* Remove all pattern statements from the loop copy.  They will confuse
      the expander if DCE is disabled.
      ???  The pattern recognizer should be split into an analysis and
@@ -1451,9 +1454,6 @@ slpeel_tree_peel_loop_to_edge (struct loop *loop,
 
   adjust_vec_debug_stmts ();
 
-  BITMAP_FREE (definitions);
-  delete_update_ssa ();
-
   return new_loop;
 }