[PATCH] D159169: [CSSPGO] Refactoring findIRAnchors
Hongtao Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 29 23:48:18 PDT 2023
hoy accepted this revision.
hoy added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/lib/Transforms/IPO/SampleProfile.cpp:2141-2145
+ if (Function *Callee = CB->getCalledFunction())
+ CalleeName =
+ FunctionSamples::getCanonicalFnName(Callee->getName());
+ else
+ CalleeName = UnknownIndirectCallee;
----------------
nit: may be good to hoist this code into a lamda and share it with the line-number path.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159169/new/
https://reviews.llvm.org/D159169
More information about the llvm-commits
mailing list