[PATCH] D115915: [Try2][InstrProf] Add Correlator class to read debug info

Ellis Hoag via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 17 09:44:19 PST 2021


ellis created this revision.
Herald added subscribers: hiraditya, mgorny.
ellis updated this revision to Diff 395155.
ellis added a comment.
ellis published this revision for review.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.

Add `namespace llvm {` around template specialization to see if that will fix the build error.


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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115915

Files:
  compiler-rt/test/profile/Darwin/instrprof-debug-info-correlate.c
  compiler-rt/test/profile/Linux/instrprof-debug-info-correlate.c
  llvm/include/llvm/ProfileData/InstrProf.h
  llvm/include/llvm/ProfileData/InstrProfCorrelator.h
  llvm/include/llvm/ProfileData/InstrProfReader.h
  llvm/lib/ProfileData/CMakeLists.txt
  llvm/lib/ProfileData/InstrProf.cpp
  llvm/lib/ProfileData/InstrProfCorrelator.cpp
  llvm/lib/ProfileData/InstrProfReader.cpp
  llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
  llvm/tools/llvm-profdata/CMakeLists.txt
  llvm/tools/llvm-profdata/llvm-profdata.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115915.395155.patch
Type: text/x-patch
Size: 39791 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211217/484aceec/attachment.bin>


More information about the llvm-commits mailing list