[all-commits] [llvm/llvm-project] 95946d: [InstrProf] Add Correlator class to read debug info

Ellis Hoag via All-commits all-commits at lists.llvm.org
Thu Dec 16 15:18:25 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 95946d2f8589b5450d8f9a9e9b4f7adf44386f8b
      https://github.com/llvm/llvm-project/commit/95946d2f8589b5450d8f9a9e9b4f7adf44386f8b
  Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
  Date:   2021-12-16 (Thu, 16 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:
  -----------
  [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

Reviewed By: kyulee

Differential Revision: https://reviews.llvm.org/D114566




More information about the All-commits mailing list