Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 9aed24e

Browse files
committed
AMDGPU: Allow fp32-denormals feature for r600 targets
This was accidentally removed in r335942. Differential Revision: https://reviews.llvm.org/D49934 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@338569 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 6260bdf commit 9aed24e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

lib/Target/AMDGPU/AMDGPU.td

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -267,15 +267,6 @@ def FeatureD16PreservesUnusedBits : SubtargetFeature<
267267
// Subtarget Features (options and debugging)
268268
//===------------------------------------------------------------===//
269269

270-
// Some instructions do not support denormals despite this flag. Using
271-
// fp32 denormals also causes instructions to run at the double
272-
// precision rate for the device.
273-
def FeatureFP32Denormals : SubtargetFeature<"fp32-denormals",
274-
"FP32Denormals",
275-
"true",
276-
"Enable single precision denormal handling"
277-
>;
278-
279270
// Denormal handling for fp64 and fp16 is controlled by the same
280271
// config register when fp16 supported.
281272
// TODO: Do we need a separate f16 setting when not legal?

lib/Target/AMDGPU/AMDGPUFeatures.td

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ def FeatureFMA : SubtargetFeature<"fmaf",
1919
"Enable single precision FMA (not as fast as mul+add, but fused)"
2020
>;
2121

22+
// Some instructions do not support denormals despite this flag. Using
23+
// fp32 denormals also causes instructions to run at the double
24+
// precision rate for the device.
25+
def FeatureFP32Denormals : SubtargetFeature<"fp32-denormals",
26+
"FP32Denormals",
27+
"true",
28+
"Enable single precision denormal handling"
29+
>;
30+
2231
class SubtargetFeatureLocalMemorySize <int Value> : SubtargetFeature<
2332
"localmemorysize"#Value,
2433
"LocalMemorySize",

0 commit comments

Comments
 (0)