[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
Tue Feb 3 02:37:52 PST 2026


Pierre-vh wrote:

>  You can equivalently just directly set the bit in the MMO

Do you mean set the bit on all load/stores to alloca pointers ?
I made this PR with the assumption that doing the above was unsafe.

Can we assume all allocas are only written to/read by a single-thread, even if the pointer escapes ? Can't we share it with other threads if globally addressable scratch is used?

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


More information about the llvm-branch-commits mailing list