From: Joseph Myers <joseph@codesourcery.com>
To: Jakub Jelinek <jakub@redhat.com>
Cc: Jan Hubicka <jh@suse.cz>, <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] options, lto: Optimize streaming of optimization nodes
Date: Wed, 18 Nov 2020 19:06:49 +0000 [thread overview]
Message-ID: <alpine.DEB.2.22.394.2011181906410.90853@digraph.polyomino.org.uk> (raw)
In-Reply-To: <20201118093635.GI3788@tucnak>
On Wed, 18 Nov 2020, Jakub Jelinek via Gcc-patches wrote:
> Hi!
>
> Reposting with self-contained description per Joseph's request:
>
> Honza mentioned that especially for the new param machinery, most of
> streamed values are probably going to be the default values. Perhaps
> somehow we could stream them more effectively.
>
> This patch implements it and brings further savings, the size
> goes down from 574 bytes to 273 bytes, i.e. less than half.
> Not trying to handle enums because the code doesn't know if (enum ...) 10
> is even valid, similarly non-parameters because those really generally
> don't have large initializers, and params without Init (those are 0
> initialized and thus don't need to be handled).
>
> Bootstrapped/regtested again on x86_64-linux and i686-linux, ok for trunk?
>
> 2020-11-18 Jakub Jelinek <jakub@redhat.com>
>
> * optc-save-gen.awk: Initialize var_opt_init. In
> cl_optimization_stream_out for params with default values larger than
> 10, xor the default value with the actual parameter value. In
> cl_optimization_stream_in repeat the above xor.
OK.
--
Joseph S. Myers
joseph@codesourcery.com
next prev parent reply other threads:[~2020-11-18 19:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-13 8:33 Jakub Jelinek
2020-09-14 6:39 ` Richard Biener
2020-09-14 7:00 ` Jakub Jelinek
2020-09-14 7:31 ` Richard Biener
2020-09-14 8:48 ` Jakub Jelinek
2020-09-14 9:02 ` Jan Hubicka
2020-09-14 9:47 ` Jakub Jelinek
2020-10-05 9:21 ` Patch ping (Re: [PATCH] options, lto: Optimize streaming of optimization nodes) Jakub Jelinek
2020-11-18 9:36 ` [PATCH] options, lto: Optimize streaming of optimization nodes Jakub Jelinek
2020-11-18 19:06 ` Joseph Myers [this message]
2022-03-31 13:22 ` options: Clarify 'Init' option property usage for streaming optimization (was: [PATCH] options, lto: Optimize streaming of optimization nodes) Thomas Schwinge
2022-10-26 13:46 ` [PING] " Thomas Schwinge
2022-10-26 18:21 ` Joseph Myers
2020-09-14 9:23 ` [PATCH] options, lto: Optimize streaming of optimization nodes Richard Biener
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.22.394.2011181906410.90853@digraph.polyomino.org.uk \
--to=joseph@codesourcery.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=jakub@redhat.com \
--cc=jh@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).