aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-11-18 20:14:00 +0100
committerJakub Jelinek <jakub@redhat.com>2020-11-18 20:14:00 +0100
commit95db7e9afe57ca1c269d46baa2accced004e5c74 (patch)
tree4ccd276d0b07bfc9ac1ef6dc43b54f85e8c11165 /gcc/cp/parser.c
parentd326ebc94f3b2b0d962fb9e253564b39106a10da (diff)
downloadgcc-95db7e9afe57ca1c269d46baa2accced004e5c74.zip
gcc-95db7e9afe57ca1c269d46baa2accced004e5c74.tar.gz
gcc-95db7e9afe57ca1c269d46baa2accced004e5c74.tar.bz2
options, lto: Optimize streaming of optimization nodes
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). 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.
Diffstat (limited to 'gcc/cp/parser.c')
0 files changed, 0 insertions, 0 deletions