[llvm-branch-commits] [llvm] [StaticDataLayout] Reconcile data hotness based on PGO counters and data access profiles (PR #163325)
Mingming Liu via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Oct 14 16:41:24 PDT 2025
================
@@ -58,11 +58,18 @@ class StaticDataProfileInfo {
LLVM_ABI StaticDataHotness getSectionHotnessUsingProfileCount(
const Constant *C, const ProfileSummaryInfo *PSI, uint64_t Count) const;
+ /// Return the hotness based on section prefix \p SectionPrefix.
+ LLVM_ABI StaticDataHotness
+ getSectionHotnessUsingDAP(std::optional<StringRef> SectionPrefix) const;
----------------
mingmingl-llvm wrote:
done by extending 'DAP' to `DataAccessProfile` or `DataAccessProf`. I'll think about where to mention 'DAP' to LLVM docs so the abbreviation name are widely known (like PGO/LTO, etc).
I'll revise the test name `llvm/test/CodeGen/X86/global-variable-partition-with-dap.ll` in a follow-up patch.
https://github.com/llvm/llvm-project/pull/163325
More information about the llvm-branch-commits
mailing list