[llvm-branch-commits] [llvm] [AMDGPU][PromoteAlloca] Set !amdgpu.non.volatile if promotion fails (PR #179415)

Pierre van Houtryve via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Feb 6 02:46:26 PST 2026


Pierre-vh wrote:

@arsenm Given that we can't assume all accesses to addrspace(5) are thread-local, what is a good way to proceed here ?
I was thinking of doing something a bit more generic. e.g. add a separate pass to analyze all load/stores in addrspace(5), and if they're thread-local, add some MD to them (e.g. `!amdgpu.thread_private`)

I'd like to at least mark some scratch accesses. I don't think we need to mark all of them to get good performance, but the trivial cases (like basic allocas, or byvals) would be nice.

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


More information about the llvm-branch-commits mailing list