[all-commits] [llvm/llvm-project] d687ca: [InstrProf] Emit warnings when correlating lightwe...

Ellis Hoag via All-commits all-commits at lists.llvm.org
Tue Aug 15 15:28:31 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d687caae00469cf8fa47c573d98e9d4a85bc872f
      https://github.com/llvm/llvm-project/commit/d687caae00469cf8fa47c573d98e9d4a85bc872f
  Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
  Date:   2023-08-15 (Tue, 15 Aug 2023)

  Changed paths:
    A compiler-rt/test/profile/Linux/instrprof-debug-info-correlate-warnings.c
    M llvm/include/llvm/ProfileData/InstrProfCorrelator.h
    M llvm/lib/ProfileData/InstrProfCorrelator.cpp
    M llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
    M llvm/tools/llvm-profdata/llvm-profdata.cpp

  Log Message:
  -----------
  [InstrProf] Emit warnings when correlating lightweight profiles

Emit warnings when `InstrProfCorrelator` finds problems with debug info for lightweight instrumentation profile correlation. To prevent excessive printing, only emit the first 5 warnings.

In addition, remove a diagnostic about missing debug info in `InstrProfiling.cpp`. Some compiler-generated functions, e.g., `__clang_call_terminate`, does not emit debug info and will fail a build if `-Werror` is used. This warning is not actionable by the user and I have not seen non-compiler-generated functions fail this test.

Reviewed By: smeenai

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




More information about the All-commits mailing list