[llvm] [AMDGPU] Enable "amdgpu-sw-lower-lds" pass in pipeline. (PR #89206)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu May 23 04:04:09 PDT 2024


================
@@ -676,6 +676,11 @@ void AMDGPUTargetMachine::registerPassBuilderCallbacks(
 
         if (EarlyInlineAll && !EnableFunctionCalls)
           PM.addPass(AMDGPUAlwaysInlinePass());
+
+#if __has_feature(address_sanitizer)
+        EnableLowerModuleLDS = false;
----------------
arsenm wrote:

If you run the asan lowering, the LDS variables cease to exist. LowerModuleLDS can then run after and naturally no-op. You shouldn't need to disable anything 

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


More information about the llvm-commits mailing list