[llvm-branch-commits] [llvm] [StaticDataLayout] Reconcile data hotness based on PGO counters and data access profiles (PR #163325)

Snehasish Kumar via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Oct 14 14:33:25 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;
----------------
snehasish wrote:

I see the DAP suffix used here and also in a few variable names. I wonder how we can make it easier for the reader to know that it's an abbreviation for `DataAccessProfile`? 

https://github.com/llvm/llvm-project/pull/163325


More information about the llvm-branch-commits mailing list