[llvm] [LLVM] Make sanitizers respect the disable_santizer_instrumentation attribute. (PR #91732)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Mon May 13 05:07:28 PDT 2024
================
@@ -803,6 +803,8 @@ bool GCOVProfiler::emitProfileNotes(
continue;
if (F.hasFnAttribute(llvm::Attribute::SkipProfile))
continue;
+ if (F.hasFnAttribute(llvm::Attribute::DisableSanitizerInstrumentation))
----------------
vitalybuka wrote:
I see why we need this, it's just a little bit inconsistent to use attribute with sanitizer in name to suppress profiling.
would be possible to add a test for GCOV and memprof as well?
https://github.com/llvm/llvm-project/pull/91732
More information about the llvm-commits
mailing list