AMDGPU: Check global FP atomics match default FP mode
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 17 Sep 2020 22:18:46 +0000 (18:18 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 23 Sep 2020 13:07:50 +0000 (09:07 -0400)
commitaf0207f2bae8578c5283877a786e502ce6e33b14
tree500b20ccda5cd518e64a62e2705cc11186c3a121
parent20f84257ac4ac54ceb5f581a6081fac6eff2a5a1
AMDGPU: Check global FP atomics match default FP mode

We would always select global FP atomics from atomicrmw fadd, although
they have a hardcoded FP mode.
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/test/CodeGen/AMDGPU/global-atomics-fp.ll
llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-rmw-fadd.ll