aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-11-17 00:40:45 +0000
committerTed Kremenek <kremenek@apple.com>2007-11-17 00:40:45 +0000
commit4d1e79c8acea25f2d7e7e5dea3edcb7f131dc2e5 (patch)
tree2bd7cac9b869f4baf2d56bf935f9a2e20445f93e /llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp
parent8e22379303930b9396c7bee1d5c569c40a012e9e (diff)
downloadllvm-4d1e79c8acea25f2d7e7e5dea3edcb7f131dc2e5.zip
llvm-4d1e79c8acea25f2d7e7e5dea3edcb7f131dc2e5.tar.gz
llvm-4d1e79c8acea25f2d7e7e5dea3edcb7f131dc2e5.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. llvm-svn: 44199
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp')
0 files changed, 0 insertions, 0 deletions