[PATCH] D122336: [InstrProfiling] No runtime hook for unused funcs
David Li via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 25 11:44:26 PDT 2022
davidxl added inline comments.
================
Comment at: llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp:569
+ if (!containsProfilingIntrinsics(M)) {
+ if (!CoverageNamesVar || !NeedsRuntimeHook) {
+ return MadeChange;
----------------
gulfem wrote:
> MaskRay wrote:
> > https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements
> >
> > That said, nested if is usually written as a single if with `&&`
> Thanks for the tip @MaskRay, and I'm going to fix that in a following patch.
It would be helpful to add a comment in the code reflecting the review discussions.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122336/new/
https://reviews.llvm.org/D122336
More information about the cfe-commits
mailing list