[PATCH] D60086: [SampleProfile] Check entry count instead of total count to decide if inlined callsite is hot.
Wei Mi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 1 16:30:07 PDT 2019
wmi added a comment.
Theorectically, as you said checking entry sample count rather than the total sample count makes more sense. However, the entry sample count of callsite is not as precise as function sample entry count, which is got from lbr directly. For callsite, it can get very wrong entry sample count because of missing debug information after optimization. That is why we chose total sample count instead of entry sample count when evaluating the hotness of callsite.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60086/new/
https://reviews.llvm.org/D60086
More information about the llvm-commits
mailing list