[llvm] [AMDGPU] Add legalization rules for G_ATOMICRMW_FADD (PR #175257)

Petar Avramovic via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 9 02:56:51 PST 2026


petar-avramovic wrote:

> Should I use P0, P1 and P3 instead of Ptr32 and Ptr64? I am concerned that other addrspaces may be allowed when they shouldn't be.

I'm much in favor of being precise and using P0, P1, P3. For example other addr spaces do load->fadd->store expansion earlier if addr space does not have appropriate atomic instruction

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


More information about the llvm-commits mailing list