[PATCH] D159169: [CSSPGO] Refactoring findIRAnchors
Wenlei He via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 30 10:12:27 PDT 2023
wenlei added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/SampleProfile.cpp:2162-2164
+ LineLocation IRCallsite = FunctionSamples::getCallSiteIdentifier(DIL);
+ StringRef CalleeName = FindCalleeName(dyn_cast<CallBase>(&I));
+ IRAnchors.emplace(IRCallsite, CalleeName);
----------------
Actually can this be unified with `FindTopLevelFrame`? For not inlined calls, `DIL->getSubprogramLinkageName` should be equivalent to `FindCalleeName(dyn_cast<CallBase>(&I))`?
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