AMDGPU: Add support for amdgpu-unsafe-fp-atomics attribute
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>
Thu, 4 Feb 2021 13:08:44 +0000 (08:08 -0500)
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>
Thu, 4 Feb 2021 13:09:34 +0000 (08:09 -0500)
commit6054a456daf323294d6f9101b9a5a2345d6b5400
tree47ff60f095e44570956fe943aaa5b2bf54b94c9b
parent83e2710eb014c9a7fcb764b0270077e4f00cdab6
AMDGPU: Add support for amdgpu-unsafe-fp-atomics attribute

If amdgpu-unsafe-fp-atomics is specified, allow {flat|global}_atomic_add_f32 even if atomic modes don't match.

Differential Revision: https://reviews.llvm.org/D95391
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/test/CodeGen/AMDGPU/global-atomics-fp.ll
llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-rmw-fadd.ll