Extend `llvm-profdata` to read in a `.proflite` file and also a debug info file to generate a normal `.profdata` profile. This reduces the binary size by 8.4% when building an instrumented Clang binary without value profiling (164 MB vs 179 MB). This work is part of the "lightweight instrumentation" RFC: https://groups.google.com/g/llvm-dev/c/r03Z6JoN7d4 This was first landed in https://reviews.llvm.org/D114566 but had to be reverted due to build errors. Reviewed By: kyulee Differential Revision: https://reviews.llvm.org/D115915
15 lines
167 B
CMake
15 lines
167 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Core
|
|
ProfileData
|
|
Object
|
|
DebugInfoDWARF
|
|
Support
|
|
)
|
|
|
|
add_llvm_tool(llvm-profdata
|
|
llvm-profdata.cpp
|
|
|
|
DEPENDS
|
|
intrinsics_gen
|
|
)
|