[llvm] [AMDGPU] Lower LDS in functions without sanitize_address in amdgpu-sw-lower-lds. (PR #131147)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 8 23:22:40 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;
----------------
skc7 wrote:
There were very rare cases, while testing math libs, found out that the return maps from getTransitiveUsesOfLDS from AMDGPUMemoryUtils had invalid entry, leading to function being invalid. So added this check.
https://github.com/llvm/llvm-project/pull/131147
More information about the llvm-commits
mailing list