Skip to content

Commit be5b0b5

Browse files
committed
AMDGPU: Remove isFloatTy check in atomicrmw integer min/max handling
1 parent 4972ec2 commit be5b0b5

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
@@ -16086,10 +16086,6 @@ SITargetLowering::shouldExpandAtomicRMWInIR(AtomicRMWInst *RMW) const {
1608616086
case AtomicRMWInst::UMax: {
1608716087
if (AMDGPU::isFlatGlobalAddrSpace(AS) ||
1608816088
AS == AMDGPUAS::BUFFER_FAT_POINTER) {
16089-
if (RMW->getType()->isFloatTy() &&
16090-
unsafeFPAtomicsDisabled(RMW->getFunction()))
16091-
return AtomicExpansionKind::CmpXChg;
16092-
1609316089
// Always expand system scope min/max atomics.
1609416090
if (HasSystemScope)
1609516091
return AtomicExpansionKind::CmpXChg;

0 commit comments

Comments
 (0)