https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71168
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- Started with r236320: Author: rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Tue May 17 12:53:30 2016 +0000 2016-05-17 Richard Biener <rguent...@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. Martin