[PATCH] D147286: [FS-AFDO] Assign discriminators to pseudo probes
Wenlei He via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 30 22:19:09 PDT 2023
wenlei added inline comments.
================
Comment at: llvm/lib/CodeGen/MIRFSDiscriminator.cpp:134-140
+ if (HasPseudoProbe) {
+ // Only assign discriminators to pseudo probe instructions. Call
+ // instructions are excluded since their dwarf discriminators are used
+ // for other purposes, i.e, storing probe ids.
+ if (!I.isPseudoProbe())
+ continue;
+ } else if (ImprovedFSDiscriminator && I.isMetaInstruction()) {
----------------
nit:
```
if ((ImprovedFSDiscriminator && I.isMetaInstruction()) ||
(HasPseudoProbe && !I.isPseudoProbe()) {
continue;
}
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147286/new/
https://reviews.llvm.org/D147286
More information about the llvm-commits
mailing list