re PR tree-optimization/71366 (ICE on valid code at -O3 on x86_64-linux-gnu: Segmenta...
authorRichard Biener <rguenther@suse.de>
Wed, 1 Jun 2016 14:05:22 +0000 (14:05 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 1 Jun 2016 14:05:22 +0000 (14:05 +0000)
commitb66af6ed30d4bfa930e7afa30d078d7e83af42a0
tree8b8ed7a675e257cb9dcb8877949db457a3b73760
parente342b9d826f4e7bea5bd409b795c210ab9910899
re PR tree-optimization/71366 (ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault)

2016-06-01  Richard Biener  <rguenther@suse.de>

PR tree-optimization/71366
* tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
(unloop_loops): Move removing edges here ...
(try_unroll_loop_completely): ... from here.
(try_peel_loop): ... and here.
(tree_unroll_loops_completely_1): Track parent loops via
bitmap of header BBs.
(tree_unroll_loops_completely): Adjust for that.

* gcc.dg/torture/pr71366-1.c: New testcase.
* gcc.dg/torture/pr71366-2.c: Likewise.

From-SVN: r236993
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr71366-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr71366-2.c [new file with mode: 0644]
gcc/tree-ssa-loop-ivcanon.c