re PR tree-optimization/84775 (ICE on valid code at -O3: in check_loop_closed_ssa_def...
authorRichard Biener <rguenther@suse.de>
Fri, 9 Mar 2018 13:29:39 +0000 (13:29 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 9 Mar 2018 13:29:39 +0000 (13:29 +0000)
commit20003c3cc31bf4ef40a0e03b4f237698e3e1b0ec
tree4c0479fbf827cfa5555c085313420f1d53b9511d
parenta4c6bd0821099f6b8c0f64a96ffd9d01a025c413
re PR tree-optimization/84775 (ICE on valid code at -O3: in check_loop_closed_ssa_def, at tree-ssa-loop-manip.c:709)

2018-03-09  Richard Biener  <rguenther@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.

From-SVN: r258387
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr84775.c [new file with mode: 0644]
gcc/tree-if-conv.c