public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* [RFC] removing statement walking from domwalk.c?
@ 2009-05-25  1:50 Paolo Bonzini
  2009-05-25  2:00 ` Richard Guenther
  0 siblings, 1 reply; 2+ messages in thread
From: Paolo Bonzini @ 2009-05-25  1:50 UTC (permalink / raw)
  To: gcc

Hi all,

for my next patch to fwprop for PR33928, I need a dominator walk and I
would have liked to use domwalk.c; however it is only for trees at the
moment, while I need it on RTL.

I was thinking therefore of removing the following fields from the
dominator walk callbacks:

  BOOL_BITFIELD walk_stmts_backward : 1;

  void (*before_dom_children_walk_stmts) (struct dom_walk_data *,
                                          basic_block,
                                          gimple_stmt_iterator);

  void (*after_dom_children_walk_stmts) (struct dom_walk_data *,
                                         basic_block,
                                         gimple_stmt_iterator);

(the last is unused anyway).  After merging the before_stmts/after_stmts
callbacks into one, the callbacks would be initialize_block_local_data,
before_dom_children and after_dom_children.  I would of course take care
of adapting the current uses, which would be quite mechanical (and
anyway there are just half a dozen).

Any objections?  I don't know exactly when I'll get to it, but I hope by
the end of June.

Paolo

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFC] removing statement walking from domwalk.c?
  2009-05-25  1:50 [RFC] removing statement walking from domwalk.c? Paolo Bonzini
@ 2009-05-25  2:00 ` Richard Guenther
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Guenther @ 2009-05-25  2:00 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: gcc

On Sun, May 24, 2009 at 7:09 PM, Paolo Bonzini <bonzini@gnu.org> wrote:
> Hi all,
>
> for my next patch to fwprop for PR33928, I need a dominator walk and I
> would have liked to use domwalk.c; however it is only for trees at the
> moment, while I need it on RTL.
>
> I was thinking therefore of removing the following fields from the
> dominator walk callbacks:
>
>  BOOL_BITFIELD walk_stmts_backward : 1;
>
>  void (*before_dom_children_walk_stmts) (struct dom_walk_data *,
>                                          basic_block,
>                                          gimple_stmt_iterator);
>
>  void (*after_dom_children_walk_stmts) (struct dom_walk_data *,
>                                         basic_block,
>                                         gimple_stmt_iterator);
>
> (the last is unused anyway).  After merging the before_stmts/after_stmts
> callbacks into one, the callbacks would be initialize_block_local_data,
> before_dom_children and after_dom_children.  I would of course take care
> of adapting the current uses, which would be quite mechanical (and
> anyway there are just half a dozen).
>
> Any objections?  I don't know exactly when I'll get to it, but I hope by
> the end of June.

Works for me.

Richard.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-05-24 17:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-25  1:50 [RFC] removing statement walking from domwalk.c? Paolo Bonzini
2009-05-25  2:00 ` Richard Guenther

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).