Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PGO] Gracefully handle zero entry-count
With sampled instrumentation (#69535), profile counts can appear corrupt. 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.
- Loading branch information