This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] FOR_EACH_RTX construct to replace for_each_rtx


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]