Fill up {,un}compression stats for ZSTD in LTO.
* lto-compress.c (lto_compression_zstd): Fill up num_compressed_il_bytes. (lto_uncompression_zstd): Likewise for num_uncompressed_il_bytes here.
This commit is contained in:
parent
0b0ad7d0d0
commit
053dc901e0
@ -1,3 +1,9 @@
|
||||
2020-05-20 Martin Liska <mliska@suse.cz>
|
||||
|
||||
* lto-compress.c (lto_compression_zstd): Fill up
|
||||
num_compressed_il_bytes.
|
||||
(lto_uncompression_zstd): Likewise for num_uncompressed_il_bytes here.
|
||||
|
||||
2020-05-20 Richard Biener <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/95219
|
||||
|
@ -141,6 +141,7 @@ lto_compression_zstd (struct lto_compression_stream *stream)
|
||||
if (ZSTD_isError (csize))
|
||||
internal_error ("compressed stream: %s", ZSTD_getErrorName (csize));
|
||||
|
||||
lto_stats.num_compressed_il_bytes += csize;
|
||||
stream->callback (outbuf, csize, NULL);
|
||||
|
||||
lto_destroy_compression_stream (stream);
|
||||
@ -169,6 +170,7 @@ lto_uncompression_zstd (struct lto_compression_stream *stream)
|
||||
if (ZSTD_isError (dsize))
|
||||
internal_error ("decompressed stream: %s", ZSTD_getErrorName (dsize));
|
||||
|
||||
lto_stats.num_uncompressed_il_bytes += dsize;
|
||||
stream->callback (outbuf, dsize, stream->opaque);
|
||||
|
||||
lto_destroy_compression_stream (stream);
|
||||
|
Loading…
Reference in New Issue
Block a user