aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorMichael O'Farrell <micpof@gmail.com>2024-10-22 16:05:40 -0700
committerGitHub <noreply@github.com>2024-10-22 16:05:40 -0700
commit10f0c1aadd878be3bd7c586c4a2c7d7c76aee733 (patch)
treef626950285822fe50adf12e1463df27851e11457 /clang/lib/CodeGen/CodeGenModule.cpp
parent8a12e0131f3d84b470fac63af042aa96a1b19f56 (diff)
downloadllvm-10f0c1aadd878be3bd7c586c4a2c7d7c76aee733.zip
llvm-10f0c1aadd878be3bd7c586c4a2c7d7c76aee733.tar.gz
llvm-10f0c1aadd878be3bd7c586c4a2c7d7c76aee733.tar.bz2
[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.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions