[all-commits] [llvm/llvm-project] 764614: [MemProf] Restructure the pruning of unneeded NotC...
Teresa Johnson via All-commits
all-commits at lists.llvm.org
Wed May 7 17:35:05 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 764614e6355e214c6b64c715d105007b1a4b97fd
https://github.com/llvm/llvm-project/commit/764614e6355e214c6b64c715d105007b1a4b97fd
Author: Teresa Johnson <tejohnson at google.com>
Date: 2025-05-07 (Wed, 07 May 2025)
Changed paths:
M llvm/include/llvm/Analysis/MemoryProfileInfo.h
M llvm/lib/Analysis/MemoryProfileInfo.cpp
M llvm/test/Transforms/PGOProfile/memprof.ll
Log Message:
-----------
[MemProf] Restructure the pruning of unneeded NotCold contexts (#138792)
This change is mostly NFC, other than the addition of a new message
printed when contexts are pruned when -memprof-report-hinted-sizes is
enabled.
To prepare for a follow on change, adjust the way we determine which
NotCold contexts can be pruned (because they overlap with longer NotCold
contexts), and change the way we perform this pruning.
Instead of determining the points at which we need to keep NotCold
contexts during the building of the trie, we now determine this on the
fly as the MIB metadata nodes are recursively built. This simplifies a
follow on change that performs additional pruning of some NotCold
contexts, and which can affect which others need to be kept as the
longest overlapping NotCold contexts.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list