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:
Martin Liska 2020-05-20 14:39:21 +02:00
parent 0b0ad7d0d0
commit 053dc901e0
No known key found for this signature in database
GPG Key ID: 4DC182DC0FA73785
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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);