[all-commits] [llvm/llvm-project] 65d7fd: [Try2][InstrProf] Add Correlator class to read deb...
Ellis Hoag via All-commits
all-commits at lists.llvm.org
Fri Dec 17 10:46:12 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 65d7fd0239bf301c5dcaa26ed474200845966136
https://github.com/llvm/llvm-project/commit/65d7fd0239bf301c5dcaa26ed474200845966136
Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
Date: 2021-12-17 (Fri, 17 Dec 2021)
Changed paths:
A compiler-rt/test/profile/Darwin/instrprof-debug-info-correlate.c
A compiler-rt/test/profile/Linux/instrprof-debug-info-correlate.c
M llvm/include/llvm/ProfileData/InstrProf.h
A llvm/include/llvm/ProfileData/InstrProfCorrelator.h
M llvm/include/llvm/ProfileData/InstrProfReader.h
M llvm/lib/ProfileData/CMakeLists.txt
M llvm/lib/ProfileData/InstrProf.cpp
A llvm/lib/ProfileData/InstrProfCorrelator.cpp
M llvm/lib/ProfileData/InstrProfReader.cpp
M llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
M llvm/tools/llvm-profdata/CMakeLists.txt
M llvm/tools/llvm-profdata/llvm-profdata.cpp
Log Message:
-----------
[Try2][InstrProf] Add Correlator class to read debug info
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
More information about the All-commits
mailing list