re PR middle-end/68870 (ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu)
authorRichard Biener <rguenther@suse.de>
Wed, 16 Dec 2015 14:56:10 +0000 (14:56 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 16 Dec 2015 14:56:10 +0000 (14:56 +0000)
commit7b5ab0cdc1e9deb628f98ced5f6e80703a8835f3
tree58159337d2a2ac40cdb43c20c75ebe6433122b00
parent44c068aecb0ba30a25e3086e1c2dad7f6a3f8303
re PR middle-end/68870 (ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu)

2015-12-16  Richard Biener  <rguenther@suse.de>

PR tree-optimization/68870
* tree-cfgcleanup.c (cleanup_control_expr_graph): Add first_p
parameter, if set only perform trivial constant folding.
Queue other blocks with conditions for later processing.
(cleanup_control_flow_bb): Add first_p parameter and pass it through.
(cleanup_tree_cfg_1): Pass true for the first iteration
cleanup_control_expr_graph.

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

From-SVN: r231695
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr68870.c [new file with mode: 0644]
gcc/tree-cfgcleanup.c