[llvm] [AMDGPU] Enable amdgpu-sw-lower-lds pass to lower LDS accesses to use device global memory (PR #87265)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 9 03:54:41 PDT 2024


================
@@ -679,6 +680,11 @@ void AMDGPUTargetMachine::registerPassBuilderCallbacks(
 
         if (EarlyInlineAll && !EnableFunctionCalls)
           PM.addPass(AMDGPUAlwaysInlinePass());
+
+#if __has_feature(address_sanitizer)
----------------
skc7 wrote:

I want to enable this new pass only when address sanitizer feature is enabled? I have found usage of this "__has_feature(asan)" in the codebase for conditional compilation. Is there any other way to figure out if asan is enabled? 

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


More information about the llvm-commits mailing list