[PATCH] Fill up {,un}compression stats for ZSTD in LTO.

Martin Liška mliska@suse.cz
Wed May 20 09:59:40 GMT 2020


Hi.

As Honza correctly noticed we're missing {,un}compression ratio for
ZSTD compression.

Before:

gcc foo.o -flto-report 2>&1 | grep com
[WPA] Compression: 1022 input bytes, 0 uncompressed bytes (ratio: 0.000000)
[WPA] Compression: 1368 input bytes, 0 uncompressed bytes (ratio: 0.000000)

After:

gcc foo.o -flto-report 2>&1 | grep com
[WPA] Compression: 1022 input bytes, 1647 uncompressed bytes (ratio: 1.611546)
[WPA] Compression: 1368 input bytes, 1953 uncompressed bytes (ratio: 1.427632)

Ready to be installed after regression tests?
Thanks,
Martin

gcc/ChangeLog:

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.
---
  gcc/lto-compress.c | 2 ++
  1 file changed, 2 insertions(+)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fill-up-un-compression-stats-for-ZSTD-in-LTO.patch
Type: text/x-patch
Size: 802 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200520/86f93063/attachment.bin>


More information about the Gcc-patches mailing list