[patch] tree-cfg.c: Speed up thread_jumps.

Andrew Pinski pinskia@physics.uc.edu
Mon Nov 8 05:49:00 GMT 2004


On Nov 7, 2004, at 11:59 PM, Kazu Hirata wrote:

> Hi,
>
> Attached is a patch to speed up thread_jumps by keeping a pointer to
> the last used element in the worklist.
>
> This trick is used in cfganal.c:find_unreachable_blocks as well.
>
> Note that we get to keep one fewer variables in innermost loops.

Should IVopts do this for us?  Can you file a bug for this optimization
since it seems like it should be doing it.

Thanks,
Andrew Pinski



More information about the Gcc-patches mailing list