[llvm] 10d6e4e - [StaticDataLayout] Temporarily undo diagnostic warning when the data access profile payload is not available (#177412)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 22 13:47:25 PST 2026
Author: Mingming Liu
Date: 2026-01-22T13:47:20-08:00
New Revision: 10d6e4e5bd3939daa0d27a81380db16cc0367b09
URL: https://github.com/llvm/llvm-project/commit/10d6e4e5bd3939daa0d27a81380db16cc0367b09
DIFF: https://github.com/llvm/llvm-project/commit/10d6e4e5bd3939daa0d27a81380db16cc0367b09.diff
LOG: [StaticDataLayout] Temporarily undo diagnostic warning when the data access profile payload is not available (#177412)
Added a FIXME to add it back later after figuring out how to make it a
non-error like the PGO profile mismatch one.
Added:
Modified:
llvm/lib/Transforms/Instrumentation/MemProfUse.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Instrumentation/MemProfUse.cpp b/llvm/lib/Transforms/Instrumentation/MemProfUse.cpp
index 1a55021c5d3f7..748c4cb711027 100644
--- a/llvm/lib/Transforms/Instrumentation/MemProfUse.cpp
+++ b/llvm/lib/Transforms/Instrumentation/MemProfUse.cpp
@@ -910,11 +910,8 @@ bool MemProfUsePass::annotateGlobalVariables(
if (!DataAccessProf) {
M.addModuleFlag(Module::Warning, "EnableDataAccessProf", 0U);
- M.getContext().diagnose(DiagnosticInfoPGOProfile(
- MemoryProfileFileName.data(),
- StringRef("Data access profiles not found in memprof. Ignore "
- "-memprof-annotate-static-data-prefix."),
- DS_Warning));
+ // FIXME: Add a diagnostic message without failing the compilation when
+ // data access profile payload is not available.
return false;
}
M.addModuleFlag(Module::Warning, "EnableDataAccessProf", 1U);
More information about the llvm-commits
mailing list