[PATCH] D64029: [PGO] Add PGO support at -O0 in the experimental new pass manager
Rong Xu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 1 14:59:27 PDT 2019
xur marked 3 inline comments as done.
xur added inline comments.
Comment at: clang/lib/CodeGen/BackendUtil.cpp:1125
+ PB.addPGOInstrPassesForO0(MPM, CodeGenOpts.DebugPassManager,
+ /* RunProfileGen */ PGOOpt->Action ==
> Minor nit, here and else where with the comment-named bools I'd use the style: `/*RunProfileGen=*/PGOOpt->Action == PGOOPtions::IRInstr`
> This was suggested as more consistent w/ Clang style, and it seems a bit cleaner. Also, clang-tidy will recognize and check that the comment uses the same name as the parameter.
Thanks for the suggestion and the reasoning.
I actually wrote it in one line.
This was produced by "clang/tools/clang-format/clang-format-diff.py". :-)
I'm using now "/*RunProfileGen=*/ (PGOOpt->Action == PGOOPtions::IRInstr)" so clang-format-diff.py won't complain
CHANGES SINCE LAST ACTION
More information about the cfe-commits