[PATCH] D156006: [InstrProf] Emit warnings when correlating lightweight profiles

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 7 13:47:09 PDT 2023


phosek added inline comments.


================
Comment at: llvm/lib/ProfileData/InstrProfCorrelator.cpp:267
+  // The negation of the maximum number of warnings we would like to emit
+  int NumSuppressedWarnings = -5;
   auto maybeAddProbe = [&](DWARFDie Die) {
----------------
Could this be controlled by an option, with default value being `5`, rather than hardcoding the value here?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156006/new/

https://reviews.llvm.org/D156006



More information about the llvm-commits mailing list