[AMDGPU] Enable ds_min/ds_max on more subtargets
authorJoe Nash <Joseph.Nash@amd.com>
Tue, 31 Aug 2021 13:03:12 +0000 (09:03 -0400)
committerJoe Nash <Joseph.Nash@amd.com>
Tue, 31 Aug 2021 17:22:31 +0000 (13:22 -0400)
commitc96839265a5673d1383c9d82aab76e15f38c0010
tree6a54b836e58d5664e8b15e2e98025cf792fdd3f6
parent94d3ff09cfa8d7aecf480e54da9a5334e262e76b
[AMDGPU] Enable ds_min/ds_max on more subtargets

Adds patterns for f64 ds_min/ds_max. Shrinks HasLDSFPAtomics
scope to enable f32.

Reviewed By: rampitec

Differential Revision: https://reviews.llvm.org/D108994

Change-Id: Id890b677841ee588b20d42b1bb3f4cdbf6e9ba1a
llvm/lib/Target/AMDGPU/AMDGPU.td
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
llvm/lib/Target/AMDGPU/DSInstructions.td
llvm/lib/Target/AMDGPU/GCNSubtarget.h
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/test/CodeGen/AMDGPU/lds-atomic-fadd.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/lds-atomic-fmin-fmax.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/lds_atomic_f32.ll [deleted file]