[PATCH] D159169: [CSSPGO] Refactoring findIRAnchors
Lei Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 30 00:15:38 PDT 2023
wlei added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/SampleProfile.cpp:2141-2145
+ if (Function *Callee = CB->getCalledFunction())
+ CalleeName =
+ FunctionSamples::getCanonicalFnName(Callee->getName());
+ else
+ CalleeName = UnknownIndirectCallee;
----------------
hoy wrote:
> nit: may be good to hoist this code into a lamda and share it with the line-number path.
Good point, done!
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