[llvm] [SampleProfileProbe] Downgrade probes too large from error to warning. (PR #72574)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 16 13:55:42 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-transforms
Author: Davide Italiano (dcci)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/72574.diff
1 Files Affected:
- (modified) llvm/lib/Transforms/IPO/SampleProfileProbe.cpp (+2-1)
``````````diff
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;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/72574
More information about the llvm-commits
mailing list