Skip to content

Commit 2cb5d11

Browse files
committed
AMDGPU: Remove isFloatTy check in atomicrmw integer min/max handling
1 parent 7fd1aa1 commit 2cb5d11

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16077,10 +16077,6 @@ SITargetLowering::shouldExpandAtomicRMWInIR(AtomicRMWInst *RMW) const {
1607716077
case AtomicRMWInst::UMax: {
1607816078
if (AMDGPU::isFlatGlobalAddrSpace(AS) ||
1607916079
AS == AMDGPUAS::BUFFER_FAT_POINTER) {
16080-
if (RMW->getType()->isFloatTy() &&
16081-
unsafeFPAtomicsDisabled(RMW->getFunction()))
16082-
return AtomicExpansionKind::CmpXChg;
16083-
1608416080
// Always expand system scope min/max atomics.
1608516081
if (HasSystemScope)
1608616082
return AtomicExpansionKind::CmpXChg;

0 commit comments

Comments
 (0)