re PR tree-optimization/55964 (Segmentation fault with -O -ftree-loop-distribution...
authorRichard Biener <rguenther@suse.de>
Wed, 16 Jan 2013 14:06:58 +0000 (14:06 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 16 Jan 2013 14:06:58 +0000 (14:06 +0000)
commit2cfc56b9bd0dcda51350d8cbd9df1dafecef4d6c
tree57ef3c159a5442c7ebc9b1b98e651e37f06bfd0e
parentc25a0c60a5893ae7f4ba309b5b3bb2f336873683
re PR tree-optimization/55964 (Segmentation fault with -O -ftree-loop-distribution -funswitch-loops)

2013-01-16  Richard Biener  <rguenther@suse.de>

PR tree-optimization/55964
* tree-flow.h (rename_variables_in_loop): Remove.
(rename_variables_in_bb): Likewise.
* tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
(copy_loop_before): Adjust and delete update-ssa status.
* tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
(rename_variables_in_bb): Likewise.  Properly walk over
predecessors.
(rename_variables_in_loop): Remove.
(slpeel_update_phis_for_duplicate_loop): Likewise.
(slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
use available cfg machinery instead of duplicating it.
Update PHI nodes and perform poor-mans SSA update here.
(slpeel_tree_peel_loop_to_edge): Adjust.

* gcc.dg/torture/pr55964.c: New testcase.

From-SVN: r195239
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr55964.c [new file with mode: 0644]
gcc/tree-flow.h
gcc/tree-loop-distribution.c
gcc/tree-vect-loop-manip.c