[PATCH] FOR_EACH_RTX construct to replace for_each_rtx

Steven Bosscher stevenb@suse.de
Thu Jan 20 08:51:00 GMT 2005


On Thursday 20 January 2005 09:09, Paolo Bonzini wrote:
> > I don't like the fact that this isn't an exact drop-in replacement
> > of FOR_EACH_RTX.  I very much feel that the first version of this
> > change to be installed should support *exactly* the same interface.
>
> This is not exactly possible; for_each_rtx has a return value,
> FOR_EACH_RTX cannot for obvious reasons.

Maybe you can initially just use FOR_EACH_RTX inside for_each_rtx?
That way you can post the macro thing separately.


> As I said, I actually did not think to do this for 4.0, which also made
> me more liberal in polishing the resulting code.

4% is very tempting ;-)
Probably the iterator itself could be speeded up a bit also, because
alloca can be quite expensive.  Have you tried the freelist idea already?
Maybe an alloc pool?

Gr.
Steven



More information about the Gcc-patches mailing list