[all-commits] [llvm/llvm-project] 40508e: [PseudoProbe] Remove unnecessary asserts about non...
Hongtao Yu via All-commits
all-commits at lists.llvm.org
Mon Jul 17 09:43:32 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 40508e3ed978c9dc3024c3968701d62da624d248
https://github.com/llvm/llvm-project/commit/40508e3ed978c9dc3024c3968701d62da624d248
Author: Hongtao Yu <hoy at fb.com>
Date: 2023-07-17 (Mon, 17 Jul 2023)
Changed paths:
M llvm/lib/IR/PseudoProbe.cpp
Log Message:
-----------
[PseudoProbe] Remove unnecessary asserts about non-zero discriminator.
Despite previous efforts in fixing accidentally setting deduplication factor and avoiding enforcing a callsite debug loc for pseudo probes, I'm still seeing an IR probe having a non-zero discriminator. This time it is due to the merge of two probes with irreconsilable debug locations and the merged probe ends up getting the original callsite locs. Therefore I'm removing the assert about IR probe should always have a zero discriminator. This safe since
- Probe discriminators are only emitted in FS-AFDO mode; and
- The first FS discriminator assigning pass always clears non-discriminators left over from IR passes.
Reviewed By: wenlei
Differential Revision: https://reviews.llvm.org/D155252
More information about the All-commits
mailing list