http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57521
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Mon Sep 9 09:51:18 2013 New Revision: 202388 URL: http://gcc.gnu.org/viewcvs?rev=202388&root=gcc&view=rev Log: 2013-09-09 Richard Biener <rguent...@suse.de> Backport from mainline 2013-08-27 Richard Biener <rguent...@suse.de> PR tree-optimization/57521 * tree-if-conv.c (if_convertible_bb_p): Verify that at least one edge is non-critical. (find_phi_replacement_condition): Make sure to use a non-critical edge. Cleanup and remove old bug workarounds. (bb_postdominates_preds): Remove. (if_convertible_loop_p_1): Do not compute post-dominators. (combine_blocks): Do not free post-dominators. (main_tree_if_conversion): Likewise. * gcc.dg/torture/pr57521.c: New testcase. Added: branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr57521.c Modified: branches/gcc-4_8-branch/gcc/ChangeLog branches/gcc-4_8-branch/gcc/testsuite/ChangeLog branches/gcc-4_8-branch/gcc/tree-if-conv.c