[llvm] [MemProf] Optionally discard small non-cold contexts (PR #139113)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Fri May 9 13:33:02 PDT 2025


================
@@ -246,9 +271,13 @@ void CallStackTrie::convertHotToNotCold(CallStackTrieNode *Node) {
 // on options that enable filtering out some NotCold contexts.
 static void saveFilteredNewMIBNodes(std::vector<Metadata *> &NewMIBNodes,
                                     std::vector<Metadata *> &SavedMIBNodes,
-                                    unsigned CallerContextLength) {
+                                    unsigned CallerContextLength,
+                                    uint64_t TotalBytes, uint64_t ColdBytes) {
+  bool MostlyCold = MinCallsiteColdBytePercent < 100 &&
----------------
teresajohnson wrote:

done

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


More information about the llvm-commits mailing list