[llvm] ff4c97d - AMDGPU: Remove dead check for amdgpu-unsafe-fp-atomics attribute (#229338)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 6 02:04:32 PDT 2026
Author: Matt Arsenault
Date: 2026-10-06T09:04:26Z
New Revision: ff4c97d67a6ee2ec8e4841c87b3935f1d513a11b
URL: https://github.com/llvm/llvm-project/commit/ff4c97d67a6ee2ec8e4841c87b3935f1d513a11b
DIFF: https://github.com/llvm/llvm-project/commit/ff4c97d67a6ee2ec8e4841c87b3935f1d513a11b.diff
LOG: AMDGPU: Remove dead check for amdgpu-unsafe-fp-atomics attribute (#229338)
This attribute is autoupgraded and has no codegen tests.
Added:
Modified:
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index 35c8de355f1a1..1fc3f8c396e4d 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -20823,13 +20823,7 @@ static bool atomicIgnoresDenormalModeOrFPModeIsFTZ(const AtomicRMWInst *RMW) {
const fltSemantics &Flt = RMW->getType()->getScalarType()->getFltSemantics();
auto DenormMode = RMW->getFunction()->getDenormalMode(Flt);
- if (DenormMode == DenormalMode::getPreserveSign())
- return true;
-
- // TODO: Remove this.
- return RMW->getFunction()
- ->getFnAttribute("amdgpu-unsafe-fp-atomics")
- .getValueAsBool();
+ return DenormMode == DenormalMode::getPreserveSign();
}
static OptimizationRemark emitAtomicRMWLegalRemark(const AtomicRMWInst *RMW) {
More information about the llvm-commits
mailing list