[PATCH] D101129: [gcov] Set nounwind and respect module flags metadata "frame-pointer" & "uwtable" for synthesized functions
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 22 20:42:25 PDT 2021
MaskRay added inline comments.
================
Comment at: llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp:1046
+ Function *F = createInternalFunction(FTy, "__llvm_gcov_init");
F->addFnAttr(Attribute::NoInline);
if (Options.NoRedZone)
----------------
I think not all three functions need `noinline`, so I do not place `noinline` in the common function.
@void Do you know why `noredzone` is needed? Many other instrumentation passes don't set this attribute.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101129/new/
https://reviews.llvm.org/D101129
More information about the llvm-commits
mailing list