[PATCH] const_and_copies is no longer file scoped
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Sep 2015 19:33:48 +0000 (19:33 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Sep 2015 19:33:48 +0000 (19:33 +0000)
commitc84fee001c01438f5cc570ea232bc8fe123374ba
tree1b110fc175cdaaf1412e67cdd7ea07193bbd6aaf
parent1c71d7c13095b42febf4ad0f38980caebf385e29
[PATCH] const_and_copies is no longer file scoped

        PR tree-optimization/47679
* tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
it here ...
(dom_opt_dom_walker): New private member holding the const_and_copies
object.  Update constructor.
(pass_dominator::execute): Corresponding changes to declaration
and initialization of const_and_copies.  Update constructor call
for the dom_opt_dom_walker object.
(record_temporary_equivalences): Accept const_and_copies argument
pass it down to children as needed.
(record_equality): Likewise.
(record_equivalences_from_incoming_edge): Likewise.
(cprop_into_successor_phis, optimize_stmt): Likewise.
(eliminate_redundant_computations): Likewise.
(dom_opt_dom_walker::thread_across_edge): Update access to
const_and_copies object and pass it to children as needed.
(dom_opt_dom_walker::before_dom_children): Similarly.
(dom_opt_dom_walker::after_dom_children): Similarly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227922 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-ssa-dom.c