diff options
author | Teresa Johnson <tejohnson@google.com> | 2025-05-07 17:34:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-07 17:34:44 -0700 |
commit | 764614e6355e214c6b64c715d105007b1a4b97fd (patch) | |
tree | 1a7e22f02709685befd0ff43fe0cd99dd63b5fae /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | c1f0e68cec4218c9d51a4ad0a6f6d878ed573dfe (diff) | |
download | llvm-764614e6355e214c6b64c715d105007b1a4b97fd.zip llvm-764614e6355e214c6b64c715d105007b1a4b97fd.tar.gz llvm-764614e6355e214c6b64c715d105007b1a4b97fd.tar.bz2 |
[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.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions