[llvm] 615ebfc - [SampleProfileProbe] Downgrade probes too large from error to warning. (#72574)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 16 15:57:55 PST 2023
Author: Davide Italiano
Date: 2023-11-16T15:57:51-08:00
New Revision: 615ebfc3e5e338cb40fa84405da0f70f0961c6b6
URL: https://github.com/llvm/llvm-project/commit/615ebfc3e5e338cb40fa84405da0f70f0961c6b6
DIFF: https://github.com/llvm/llvm-project/commit/615ebfc3e5e338cb40fa84405da0f70f0961c6b6.diff
LOG: [SampleProfileProbe] Downgrade probes too large from error to warning. (#72574)
Added:
Modified:
llvm/lib/Transforms/IPO/SampleProfileProbe.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/SampleProfileProbe.cpp b/llvm/lib/Transforms/IPO/SampleProfileProbe.cpp
index b786685d0943ada..8f0b12d0cfedfc2 100644
--- a/llvm/lib/Transforms/IPO/SampleProfileProbe.cpp
+++ b/llvm/lib/Transforms/IPO/SampleProfileProbe.cpp
@@ -237,7 +237,8 @@ void SampleProfileProber::computeProbeIdForCallsites() {
if (LastProbeId >= 0xFFFF) {
std::string Msg = "Pseudo instrumentation incomplete for " +
std::string(F->getName()) + " because it's too large";
- Ctx.diagnose(DiagnosticInfoSampleProfile(M->getName().data(), Msg));
+ Ctx.diagnose(
+ DiagnosticInfoSampleProfile(M->getName().data(), Msg, DS_Warning));
return;
}
More information about the llvm-commits
mailing list