diff options
author | Teresa Johnson <tejohnson@google.com> | 2025-07-18 21:11:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-18 21:11:37 -0700 |
commit | e57315e6ca8f05154e205136bb940b8cb14028d3 (patch) | |
tree | 49a3f1721b5915c7c6a44dc65d6c42d759419efa /clang/lib/AST/ByteCode/Compiler.cpp | |
parent | e1ac57c1a560b1d9891f93081e2f9c862c4a8d77 (diff) | |
download | llvm-e57315e6ca8f05154e205136bb940b8cb14028d3.zip llvm-e57315e6ca8f05154e205136bb940b8cb14028d3.tar.gz llvm-e57315e6ca8f05154e205136bb940b8cb14028d3.tar.bz2 |
[MemProf] Fix discarding of noncold contexts after inlining (#149599)
When we rebuild the call site tries after inlining of an allocation with
MD_memprof metadata, we don't want to reapply the discarding of small
non-cold contexts (under -memprof-callsite-cold-threshold=) because we
have either no context size info (without -memprof-report-hinted-sizes
or another option that causes us to keep that as metadata), and even
with that information in the metadata, we have imperfect information at
that point as we have already discarded some contexts during matching.
The first case was even worse because we didn't guard our check by
whether the number of cold bytes was 0, leading to very aggressive
pruning during post-inline metadata rebuilding without the context size
information.
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
0 files changed, 0 insertions, 0 deletions