aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-11-06 17:10:52 -0800
committerMatt Arsenault <arsenm2@gmail.com>2020-02-04 12:59:21 -0500
commita3c814d23497bc71b8ed53c35f773366aff02922 (patch)
treed6e42ab8a9b6747d7eeaf674484184c22e265702 /llvm/lib/CodeGen/MachineFunction.cpp
parentfce1eefb467e2bc3cd737ce78386e4970beefb7a (diff)
downloadllvm-a3c814d23497bc71b8ed53c35f773366aff02922.zip
llvm-a3c814d23497bc71b8ed53c35f773366aff02922.tar.gz
llvm-a3c814d23497bc71b8ed53c35f773366aff02922.tar.bz2
Separately track input and output denormal mode
AMDGPU and x86 at least both have separate controls for whether denormal results are flushed on output, and for whether denormals are implicitly treated as 0 as an input. The current DAGCombiner use only really cares about the input treatment of denormals.
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index e59e1fb7..10b6aa9 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -290,7 +290,7 @@ DenormalMode MachineFunction::getDenormalMode(const fltSemantics &FPType) const
// target by default.
StringRef Val = Attr.getValueAsString();
if (Val.empty())
- return DenormalMode::Invalid;
+ return DenormalMode::getInvalid();
return parseDenormalFPAttribute(Val);
}