[PATCH] D99994: [CodeView] Add CodeView support for PGO debug information
Reid Kleckner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 8 14:12:40 PDT 2021
rnk added a comment.
Seems reasonable, but we still need a small IR test.
================
Comment at: llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp:807
// TODO: Figure out which other flags need to be set.
+ if (MMI->getModule()->getProfileSummary(/* IsCS */ false) != nullptr) {
+ Flags |= static_cast<uint32_t>(CompileSym3Flags::PGO);
----------------
nit, the more common style to name parameters looks like `getProfileSummary(/*IsCS=*/false)`. Sort of more Python-y.
================
Comment at: llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp:1434
FPO |= FrameProcedureOptions::OptimizedForSpeed;
+ if (GV.getEntryCount().hasValue()) {
+ FPO |= FrameProcedureOptions::ValidProfileCounts;
----------------
I think the preferred spelling is `GV.hasProfileData()`, I think that's functionally equivalent.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99994/new/
https://reviews.llvm.org/D99994
More information about the llvm-commits
mailing list