diff options
author | Mircea Trofin <mtrofin@google.com> | 2025-08-04 03:53:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-04 03:53:49 +0200 |
commit | 9a60841dc446e954cd81d33da96e6566d617a810 (patch) | |
tree | 7eff5da3fab1641105012cb35039a684acef0201 /lldb/unittests/ScriptInterpreter/Python | |
parent | b77f51f3f1137e68ed8d5190abdc50b16f48c011 (diff) | |
download | llvm-9a60841dc446e954cd81d33da96e6566d617a810.zip llvm-9a60841dc446e954cd81d33da96e6566d617a810.tar.gz llvm-9a60841dc446e954cd81d33da96e6566d617a810.tar.bz2 |
[PGO][profcheck] ignore explicitly cold functions (#151778)
There is a case when branch profile metadata is OK to miss, namely, cold functions. The goal of the RFC (see the referenced issue) is to avoid accidental omission (and, at a later date, corruption) of profile metadata. However, asking cold functions to have all their conditional branches marked with "0" probabilities would be overdoing it. We can just ask cold functions to have an explicit 0 entry count.
This patch:
- injects an entry count for functions, unless they have one (synthetic or not)
- if the entry count is 0, doesn't inject, nor does it verify the rest of the metadata
- at verification, if the entry count is missing, it reports an error
Issue #147390
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions