[PATCH] D35744: Make new PM honor -fdebug-info-for-profiling
Chandler Carruth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 25 18:09:30 PDT 2017
chandlerc added inline comments.
================
Comment at: include/llvm/Passes/PassBuilder.h:35
std::string SampleProfileFile = "";
+ bool SampleProfileGen = false;
bool RunProfileGen = false;
----------------
Calling this profile generation seems odd.
I would call this more along the lines of supporting sample PGO *at all* (even if not using a specific profile file), and then set it to true if a file is provided (which will become more obvious with a constructor when rebased on your other patch).
Then the condition below seems simpler.
https://reviews.llvm.org/D35744
More information about the llvm-commits
mailing list