aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorLei Wang <wlei@fb.com>2024-11-22 11:51:34 -0800
committerGitHub <noreply@github.com>2024-11-22 11:51:34 -0800
commitcf83a7fdc2dfac8220d9923a831181dccb9f7277 (patch)
tree465bf6a12c7c3bcc4638ca78b687d36ce2bbc226 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent1434d2ab215e3ea9c5f34689d056edd3d4423a78 (diff)
downloadllvm-cf83a7fdc2dfac8220d9923a831181dccb9f7277.zip
llvm-cf83a7fdc2dfac8220d9923a831181dccb9f7277.tar.gz
llvm-cf83a7fdc2dfac8220d9923a831181dccb9f7277.tar.bz2
[SHT_LLVM_BB_ADDR_MAP] Add an option to skip emitting bb entries (#114447)
Sometimes we want to use a `PgoAnalysisMap` feature that doesn't require the BB entries info, e.g. only the `FuncEntryCount`, but the BB entries is emitted by default, so I'm adding an option to skip the info for this case to save the binary size(can save ~90% size of the section). For implementation, it extends a new field(`OmitBBEntries`) in `BBAddrMap::Features` for this and it's controlled by a switch `--basic-block-address-map-skip-bb-entries`. Note that this naturally supports backwards compatibility as the field is zero for the old version, matches the decoding in the new version llvm.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions