[PATCH] D108677: [CSSPGO] Add switch for sample loader to honor global pre-inliner decision from llvm-profgen
Wenlei He via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 25 16:04:24 PDT 2021
wenlei added inline comments.
================
Comment at: llvm/lib/ProfileData/SampleProfReader.cpp:794
"Cannot have both context-sensitive and regular profile");
- assert(ProfileIsCS == (CSProfileCount > 0) &&
+ assert((!CSProfileCount || ProfileIsCS == (CSProfileCount > 0)) &&
"Section flag should be consistent with actual profile");
----------------
hoy wrote:
> Nit: `assert((!CSProfileCount || ProfileIsCS ) && ...` ?
that's better, changed.
================
Comment at: llvm/lib/Transforms/IPO/SampleProfile.cpp:1269
+ // stores the decision in profile, and also adjust/merge context profile
+ // aiming at better context-sensitive post-inline profile quality, assming
+ // all inline decision estimates are going to be honored by compiler. Here
----------------
hoy wrote:
> typo; assming -> assuming
done.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108677/new/
https://reviews.llvm.org/D108677
More information about the llvm-commits
mailing list