[all-commits] [llvm/llvm-project] bef299: [GCOVProfiling] don't profile Fn's w/ noprofile at...
Nick Desaulniers via All-commits
all-commits at lists.llvm.org
Fri Jun 18 14:04:31 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bef299286104c2b6383a43b9d1eb0e47838cb5b6
https://github.com/llvm/llvm-project/commit/bef299286104c2b6383a43b9d1eb0e47838cb5b6
Author: Nick Desaulniers <ndesaulniers at google.com>
Date: 2021-06-18 (Fri, 18 Jun 2021)
Changed paths:
M llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
A llvm/test/Transforms/GCOVProfiling/noprofile.ll
Log Message:
-----------
[GCOVProfiling] don't profile Fn's w/ noprofile attribute
Similar to D104475, the Linux kernel would like to avoid compiler
generated code in certain functions. The no_profile function
attribute can be used in C to generate the the noprofile fn attr in IR.
Respect that from GCOVProfiling.
Link: https://lore.kernel.org/lkml/CAKwvOdmPTi93n2L0_yQkrzLdmpxzrOR7zggSzonyaw2PGshApw@mail.gmail.com/
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D104257
More information about the All-commits
mailing list