2015-12-16 Richard Biener <rguenther@suse.de>
commitb5e7cd42984528c5875e0d039f6ebe53fdb2b31c
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Dec 2015 14:56:10 +0000 (16 14:56 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Dec 2015 14:56:10 +0000 (16 14:56 +0000)
tree58159337d2a2ac40cdb43c20c75ebe6433122b00
parent6e71bbf2dec336831d5508b8c4cb6b9baf0ce84b
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231695 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr68870.c [new file with mode: 0644]
gcc/tree-cfgcleanup.c