[PATCH] D110864: [llvm-profgen] Ignore branch count against outline function
Lei Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 30 11:06:03 PDT 2021
wlei created this revision.
Herald added subscribers: hoy, wenlei, lxfind.
wlei requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
For some transformations like cold hot split or coro split, it can outline its part of function ranges. For profile mapping, that outline function doesn't belong to a new function. So for this case, we ignore them to accumulate the callsite samples.
For those outline function recognition, we directly check the name from the symbol table. Since `getCanonicalFnName` can filter all the alias or cloned functions, we just assume the name with `.` suffix is from the outline function.
https://reviews.llvm.org/D110864
Files:
llvm/test/tools/llvm-profgen/Inputs/coroutine.perfbin
llvm/test/tools/llvm-profgen/Inputs/coroutine.perfscript
llvm/test/tools/llvm-profgen/Inputs/func-split.perfbin
llvm/test/tools/llvm-profgen/Inputs/func-split.perfscript
llvm/test/tools/llvm-profgen/coroutine.test
llvm/test/tools/llvm-profgen/func-split.test
llvm/tools/llvm-profgen/ProfileGenerator.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110864.376292.patch
Type: text/x-patch
Size: 9296 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210930/7a67bd81/attachment.bin>
More information about the llvm-commits
mailing list