[llvm] [MemProf] Disable hot hints by default, otherwise convert to NotCold (PR #124219)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 24 10:49:28 PST 2025


================
@@ -222,6 +228,15 @@ void CallStackTrie::collectContextSizeInfo(
     collectContextSizeInfo(Caller.second, ContextSizeInfo);
 }
 
+void CallStackTrie::convertHotToNotCold(CallStackTrieNode *Node) {
+  if (Node->AllocTypes & static_cast<uint8_t>(AllocationType::Hot)) {
+    Node->AllocTypes &= ~static_cast<uint8_t>(AllocationType::Hot);
+    Node->AllocTypes |= static_cast<uint8_t>(AllocationType::NotCold);
----------------
teresajohnson wrote:

will do

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


More information about the llvm-commits mailing list