[PATCH] D147545: [CSSPGO] Stale profile matching(part 2)
Wenlei He via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 6 14:57:23 PDT 2023
wenlei added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/SampleProfile.cpp:2167
+ const auto &CTM = I.second.getCallTargets();
+ if (CTM.size() == 1) {
+ StringRef CalleeName = CTM.begin()->first();
----------------
davidxl wrote:
> hoy wrote:
> > Please add a comment for this. Basically we are filtering out possible indirect calls.
> indirect call sites are good anchors too. Why not use sequential id based anchoring?
The call site matching is based on callee names, indirect call from IR doesn't have callee name, and we opt to be conservative here (using name, instead of sequential id).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147545/new/
https://reviews.llvm.org/D147545
More information about the llvm-commits
mailing list