[llvm] [StaticDataLayout][MemProf] Record whether the IR is compiled with data access profiles by module flag. (PR #162333)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 7 12:38:23 PDT 2025
================
@@ -798,13 +798,15 @@ bool MemProfUsePass::annotateGlobalVariables(
return false;
if (!DataAccessProf) {
+ M.addModuleFlag(Module::Warning, "EnableDataAccessProf", 0U);
----------------
teresajohnson wrote:
What if the function doesn't have any variables that get data access profiles? I assume we have an non-missing but empty DataAccessProfiles section so we wouldn't come in here?
https://github.com/llvm/llvm-project/pull/162333
More information about the llvm-commits
mailing list