[PATCH] D131560: AMDGPU: Improve atomicrmw fadd selection
Petar Avramovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 10 05:42:20 PDT 2022
Petar.Avramovic created this revision.
Petar.Avramovic added reviewers: foad, arsenm, abinavpp.
Herald added subscribers: kosarev, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
Herald added a project: All.
Petar.Avramovic requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
Don't expand atomicrmw fadd for targets with corresponding instruction.
Affects gfx908 and gfx11. Add missing globalisel legalizer support for
flat atomicrmw fadd f32 on gfx940 and gfx11.
Isel support for gfx11 will be added in D130579 <https://reviews.llvm.org/D130579>.
https://reviews.llvm.org/D131560
Files:
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/flat-atomic-fadd-f32.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/fp-atomics-gfx940.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.global.atomic.fadd-with-ret.ll
llvm/test/CodeGen/AMDGPU/global-atomics-fp.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131560.451427.patch
Type: text/x-patch
Size: 27598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220810/d0d40147/attachment.bin>
More information about the llvm-commits
mailing list