diff options
| author | Lei Wang <wlei@fb.com> | 2024-11-22 11:51:34 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-22 11:51:34 -0800 |
| commit | cf83a7fdc2dfac8220d9923a831181dccb9f7277 (patch) | |
| tree | 465bf6a12c7c3bcc4638ca78b687d36ce2bbc226 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 1434d2ab215e3ea9c5f34689d056edd3d4423a78 (diff) | |
[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/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
