https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84178
--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Fri Mar 9 13:29:39 2018 New Revision: 258387 URL: https://gcc.gnu.org/viewcvs?rev=258387&root=gcc&view=rev Log: 2018-03-09 Richard Biener <rguent...@suse.de> PR tree-optimization/84775 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Delink immediate uses of predicate stmts and mark them modified. Revert PR tree-optimization/84178 * tree-if-conv.c (combine_blocks): Move insert_gimplified_predicates to caller. (version_loop_for_if_conversion): Delay update_ssa call. (tree_if_conversion): Delay update_ssa until after predicate insertion. * gcc.dg/torture/pr84775.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/torture/pr84775.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-if-conv.c