[llvm] [LLVM] Make sanitizers respect the disable_santizer_instrumentation attribute. (PR #91732)

Daniel Kiss via llvm-commits llvm-commits at lists.llvm.org
Tue May 14 04:51:39 PDT 2024


================
@@ -803,6 +803,8 @@ bool GCOVProfiler::emitProfileNotes(
         continue;
       if (F.hasFnAttribute(llvm::Attribute::SkipProfile))
         continue;
+      if (F.hasFnAttribute(llvm::Attribute::DisableSanitizerInstrumentation))
----------------
DanielKristofKiss wrote:

Thanks for the feedback, I move all profiling to a separate PR.
`no_profile_instrument_function` sound better for profiles as a common attribute.

https://github.com/llvm/llvm-project/pull/91732


More information about the llvm-commits mailing list