[lto] Remove most streamer hooks. (issue4863041)
Michael Matz
matz@suse.de
Thu Aug 11 12:57:00 GMT 2011
Hi,
On Wed, 10 Aug 2011, Diego Novillo wrote:
> The API in the tree streamer offers functions to read/write the
> tree header and the body, a streamer cache and everything that
> used to be inside the LTO streamer. This makes no difference to
> LTO, since it simply means that some formerly static functions are
> now extern functions in tree-streamer*.
>
> The only big change for LTO is mechanical. The low-level
> pickling/unpickling routines in the tree streamer need to call the
> write_tree and read_tree hooks instead of
> lto_output_tree/lto_input_tree. So, the bulk of this patch are
> calls to stream_write_tree and stream_read_tree (two macros that
> expand to streamer_hooks.write_tree and streamer_hooks.read_tree).
The obvious question: have you measured performance (with an optimized
cc1) on a medium sized exectutable, say cc1 itself? (I'm worrying about
inlining that doesn't happen anymore).
Ciao,
Michael.
More information about the Gcc-patches
mailing list