[PATCH] DOM: make some local functions methods of dom_opt_dom_walker
Jeff Law
jeffrey.law@oss.qualcomm.com
Mon Oct 5 07:49:52 GMT 2026
On 10/4/26 5:55 AM, Aldy Hernandez wrote:
> Some of the local functions in dom should really live in
> dom_opt_dom_walker, to avoid passing so much state around. Do so in
> order to make my subsequent patches cleaner.
>
> OK?
>
> gcc/ChangeLog:
>
> * tree-ssa-dom.cc (record_equivalences_from_incoming_edge): Make a
> member of dom_opt_dom_walker and use its tables.
> (eliminate_redundant_computations): Same.
> (record_equivalences_from_stmt): Same.
> (dom_opt_dom_walker::before_dom_children): Adjust the calls.
> (dom_opt_dom_walker::optimize_stmt): Same.
> ---
OK
Jeff
More information about the Gcc-patches
mailing list