tree-ssa-dom.c (optimize_stmt): Make this a method within the dom_opt_dom_walker...
authorJeff Law <law@redhat.com>
Sun, 1 Oct 2017 15:22:39 +0000 (09:22 -0600)
committerJeff Law <law@gcc.gnu.org>
Sun, 1 Oct 2017 15:22:39 +0000 (09:22 -0600)
commitaa2a59fc606f242ab11e8fa89b71bba0d3fb25c7
treec9fe638a89ad387ab792b39d17043cc4f3eb5e25
parentefa1d7a21633c6e2e66245a11ba4347baf3d1767
tree-ssa-dom.c (optimize_stmt): Make this a method within the dom_opt_dom_walker class with direct access to...

* tree-ssa-dom.c (optimize_stmt): Make this a method within the
dom_opt_dom_walker class with direct access to private members.
Add comments.  Call test_for_singularity.
(dom_opt_dom_walker::before_dom_children): Corresponding changes.
(dom_opt_dom_walker::after_dom_children): Do not lazily initialize
m_dummy_cond anymore.
(class dom_opt_dom_walker): Initialize m_dummy_cond member in the
class ctor.
(pass_dominator:execute): Build the dummy_cond here and pass it
to the dom_opt_dom_walker ctor.
(test_for_singularity): New function.

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

2017-09-30  Paolo Carlini  <paolo.carlini@oracle.com>

From-SVN: r253329
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-simplify-1.c [new file with mode: 0644]
gcc/tree-ssa-dom.c