[llvm] [AMDGPU] Lower LDS in functions without sanitize_address in amdgpu-sw-lower-lds. (PR #131147)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 13 00:09:50 PDT 2025


================
@@ -1135,6 +1134,17 @@ void AMDGPUSwLowerLDS::initAsanInfo() {
   AsanInfo.Offset = Offset;
 }
 
+static bool hasFnWithSanitizeAddressAttr(FunctionVariableMap &LDSAccesses) {
+  for (auto &K : LDSAccesses) {
+    Function *F = K.first;
+    if (!F)
+      continue;
----------------
arsenm wrote:

This isn't an explanation for why it would happen. This is just hacking around an un-understood situation. This should be fixed 

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


More information about the llvm-commits mailing list