Skip to content

Commit

Permalink
[SampleProfileProbe] Downgrade probes too large from error to warning. (
Browse files Browse the repository at this point in the history
  • Loading branch information
dcci committed Nov 16, 2023
1 parent f0ad9ea commit 615ebfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llvm/lib/Transforms/IPO/SampleProfileProbe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 615ebfc

Please sign in to comment.