[PATCH] Improve DOM's optimization of control statements
authorJeff Law <law@redhat.com>
Wed, 30 Sep 2015 20:28:14 +0000 (14:28 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 30 Sep 2015 20:28:14 +0000 (14:28 -0600)
commitd64f8dd280e6d2d70aec5b133e913b1af51832d9
tree8a5d0ddc85f0e869a286b391f3deb283fd6db817
parent9702ee6a6f2086fffd543cdb785d0caac05e7fcc
[PATCH] Improve DOM's optimization of control statements

* tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
with constant conditions.
* tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
(remove_ctrl_stmt_and_useless_edges): No longer static.
* tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
(remove_ctrl_stmt_and_useless_edges): Likewise.

* gcc.dg/tree-ssa/ssa-dom-branch-1.c: New test.

From-SVN: r228306
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-branch-1.c [new file with mode: 0644]
gcc/tree-ssa-dom.c
gcc/tree-ssa-threadupdate.c
gcc/tree-ssa-threadupdate.h