[all-commits] [llvm/llvm-project] 10f0c1: [PGO] Ensure non-zero entry-count after `populateC...
mofarrell via All-commits
all-commits at lists.llvm.org
Tue Oct 22 16:06:02 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 10f0c1aadd878be3bd7c586c4a2c7d7c76aee733
https://github.com/llvm/llvm-project/commit/10f0c1aadd878be3bd7c586c4a2c7d7c76aee733
Author: Michael O'Farrell <micpof at gmail.com>
Date: 2024-10-22 (Tue, 22 Oct 2024)
Changed paths:
M llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
A llvm/test/Transforms/PGOProfile/fix_entry_count_sampled.ll
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list