When we don't know what we're encoding, chances are it's zero often
enough that providing a 1-bit encoding of zero is a win.
This seems to be roughly size-neutral on LLVM bitcode, and reduces Clang
PCH files by ~9%.
Paths
| Differential D126038
[Bitstream] Define VBRZ encoding, and use VBRZ6 for unabbreviated values DraftPublic Authored by sammccall on May 19 2022, 5:55 PM. This is a draft revision that has not yet been submitted for review.
Details
Summary When we don't know what we're encoding, chances are it's zero often This seems to be roughly size-neutral on LLVM bitcode, and reduces Clang
Diff Detail
Revision Contents
Diff 430862 llvm/include/llvm/Bitstream/BitCodes.h
llvm/include/llvm/Bitstream/BitstreamReader.h
llvm/include/llvm/Bitstream/BitstreamWriter.h
llvm/lib/Bitstream/Reader/BitstreamReader.cpp
|
Why is this unconditionally true?