diff options
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/AMDGPU/SIISelLowering.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp index d40fbe6..592ef83 100644 --- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp +++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp @@ -16104,7 +16104,8 @@ SITargetLowering::shouldExpandAtomicRMWInIR(AtomicRMWInst *RMW) const { return ReportUnsafeHWInst(AtomicExpansionKind::None); if (Subtarget->hasAtomicFMinFMaxF64FlatInsts() && Ty->isDoubleTy()) return ReportUnsafeHWInst(AtomicExpansionKind::None); - } else if (AMDGPU::isExtendedGlobalAddrSpace(AS)) { + } else if (AMDGPU::isExtendedGlobalAddrSpace(AS) || + AS == AMDGPUAS::BUFFER_FAT_POINTER) { if (Subtarget->hasAtomicFMinFMaxF32GlobalInsts() && Ty->isFloatTy()) return ReportUnsafeHWInst(AtomicExpansionKind::None); if (Subtarget->hasAtomicFMinFMaxF64GlobalInsts() && Ty->isDoubleTy()) |