Skip to content

Commit 615ebfc

Browse files
authored
[SampleProfileProbe] Downgrade probes too large from error to warning. (#72574)
1 parent f0ad9ea commit 615ebfc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/IPO/SampleProfileProbe.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ void SampleProfileProber::computeProbeIdForCallsites() {
237237
if (LastProbeId >= 0xFFFF) {
238238
std::string Msg = "Pseudo instrumentation incomplete for " +
239239
std::string(F->getName()) + " because it's too large";
240-
Ctx.diagnose(DiagnosticInfoSampleProfile(M->getName().data(), Msg));
240+
Ctx.diagnose(
241+
DiagnosticInfoSampleProfile(M->getName().data(), Msg, DS_Warning));
241242
return;
242243
}
243244

0 commit comments

Comments
 (0)