[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:24 PDT 2025


================
@@ -46,6 +50,12 @@ bool IsAnnotationOK(const GlobalVariable &GV) {
 } // namespace memprof
 } // namespace llvm
 
+#ifndef NDEBUG
+static StringRef debugPrintSectionPrefix(StringRef Prefix) {
----------------
snehasish wrote:

This is only used within one function, so maybe move it closer to where it's used and make it a function object?

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


More information about the llvm-branch-commits mailing list