[llvm] [AMDGPU] Introduce "amdgpu-sw-lower-lds" pass to lower LDS accesses. (PR #87265)

Jon Chesterfield via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 13 04:25:59 PDT 2024


https://github.com/JonChesterfield requested changes to this pull request.

Hang on, this emits calls to asan malloc

  FunctionCallee AsanMallocFunc = M.getOrInsertFunction(
      StringRef("__asan_malloc_impl"),
      FunctionType::get(Int64Ty, {Int64Ty, Int64Ty}, false));

That function doesn't necessarily exist. It's probably a call into the malloc in rocm device libs.

This pass should not run when people aren't using the sanitizer and currently it does

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


More information about the llvm-commits mailing list