[PATCH] D70658: [LLD][ELF] - Make compression level be dependent on -On.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 26 20:03:28 PST 2019


Thank you for fixing the breakage.

On Wed, Nov 27, 2019 at 10:21 AM Shoaib Meenai via Phabricator <
reviews at reviews.llvm.org> wrote:

> smeenai added inline comments.
>
>
> ================
> Comment at: lld/test/ELF/compressed-debug-level.test:23
> +# HEADER: [Nr] Name        Type     Address  Off    Size
> +# LEVEL1: [ 1] .debug_info PROGBITS 00000000 000094 00001c
> +# LEVEL6: [ 1] .debug_info PROGBITS 00000000 000094 00001b
> ----------------
> MaskRay wrote:
> > smeenai wrote:
> > > The size appears to depend on the zlib version. For example, I'm
> running with zlib 1.2.8, which manages to compress these contents to the
> same size with both level 1 and 6. Is there any way to make this agnostic
> to zlib version?
> > I run zlib 1.2.11 and it works for me. Can you alter the input a bit to
> make the length different for level 1 and level 6, for zlib 1.2.8?
> I fixed it with 75fd939bb917e8f843395684a2970d86bc0199c0.
>
>
> Repository:
>   rG LLVM Github Monorepo
>
> CHANGES SINCE LAST ACTION
>   https://reviews.llvm.org/D70658/new/
>
> https://reviews.llvm.org/D70658
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191127/b1e800a1/attachment.html>


More information about the llvm-commits mailing list