llvm-project
10f0c1aa - [PGO] Ensure non-zero entry-count after `populateCounters` (#112029)

Commit
343 days ago
[PGO] Ensure non-zero entry-count after `populateCounters` (#112029) With sampled instrumentation (#69535), profile counts may appear corrupt and `fixFuncEntryCount` may assert. In particular a function can have a 0 block count for its entry, while later blocks are non zero. This is only likely to happen for colder functions, so it is reasonable to take any action that does not crash. Here we simply bail from fixing the entry count.
Author
Parents
Loading