diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-11-17 00:40:45 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-11-17 00:40:45 +0000 |
commit | 8ad74f881a33b9a883c1facd529c00d772c66f84 (patch) | |
tree | b57c5c111b3a23b617be0a29a9b08a633dedc14c /include/llvm/Bitcode/BitstreamReader.h | |
parent | cecc82245c884e45dd2f1cbe2f1d77497fbfa5a6 (diff) | |
download | external_llvm-8ad74f881a33b9a883c1facd529c00d772c66f84.zip external_llvm-8ad74f881a33b9a883c1facd529c00d772c66f84.tar.gz external_llvm-8ad74f881a33b9a883c1facd529c00d772c66f84.tar.bz2 |
Implemented optimization for BatchEmitOwnedPtrs that we only emit one complete
SerializedPtrID, followed by the *differences* in IDs. The big idea is that
most IDs will be just be 1 off from the previous (either that or NULL, which
we encode as a difference if 0), so this will greatly reduce the encoding
space for extra IDs to just 1 bit per pointer.
So far this optimization reduces serialization of Carbon.h by only 1%, but
we aren't using any abbreviations now in the Bitcode file to properly take
advantage of this optimization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44199 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bitcode/BitstreamReader.h')
0 files changed, 0 insertions, 0 deletions