re PR debug/46931 (Subversion id 167184 breaks building perlbench on power7 with debug)

PR debug/46931
* tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Update
SSA before removing dead stmts.

From-SVN: r168299
This commit is contained in:
Richard Guenther 2010-12-28 20:20:29 +00:00 committed by Alexandre Oliva
parent 11c4a1c004
commit 040d39eef2
2 changed files with 9 additions and 3 deletions

View 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>

View 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;
}