[PATCH] D99370: [CSSPGO] Minor tweak for inline candidate priority tie breaker
Hongtao Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 25 16:13:29 PDT 2021
hoy added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/SampleProfile.cpp:329
+ // Tie breaker using number of samples try to favor smaller functions first
+ if (LCS->getBodySamples().size() != RCS->getBodySamples().size())
+ return LCS->getBodySamples().size() > RCS->getBodySamples().size();
----------------
Would it make sense to compare callee function size instead?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99370/new/
https://reviews.llvm.org/D99370
More information about the llvm-commits
mailing list