re PR tree-optimization/71132 (gcc ICE at -O3 on valid code on x86_64-linux-gnu with...
authorRichard Biener <rguenther@suse.de>
Tue, 17 May 2016 12:53:30 +0000 (12:53 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 17 May 2016 12:53:30 +0000 (12:53 +0000)
commitb71b7a8ed8d39eb48751b6f84f41c2be45e9ed44
tree7f958dd4363ca0d3524f248ceb1479c8e213d71c
parent3c51ad4678820228a3d318f342b5e52b472b9ac9
re PR tree-optimization/71132 (gcc ICE at -O3 on valid code on x86_64-linux-gnu with “seg fault”)

2016-05-17  Richard Biener  <rguenther@suse.de>

PR tree-optimization/71132
* tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
Only add control dependences for blocks in the loop.
(build_rdg): Adjust.
(generate_code_for_partition): Return whether loop should
be destroyed and delay that.
(distribute_loop): Likewise.
(pass_loop_distribution::execute): Record loops to be destroyed
and perform delayed destroying of loops.

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

From-SVN: r236320
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr71132.c [new file with mode: 0644]
gcc/tree-loop-distribution.c