diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2021-06-18 13:58:34 -0700 |
---|---|---|
committer | Nick Desaulniers <ndesaulniers@google.com> | 2021-06-18 13:58:34 -0700 |
commit | bef299286104c2b6383a43b9d1eb0e47838cb5b6 (patch) | |
tree | 6eeaaf747171dc4afff88359174388364459ca76 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 193e41c987127aad86d0380df83e67a85266f1f1 (diff) | |
download | llvm-bef299286104c2b6383a43b9d1eb0e47838cb5b6.zip llvm-bef299286104c2b6383a43b9d1eb0e47838cb5b6.tar.gz llvm-bef299286104c2b6383a43b9d1eb0e47838cb5b6.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions