aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-11-06 10:26:43 -0800
committerMatt Arsenault <arsenm2@gmail.com>2020-03-07 12:10:56 -0500
commita4e71f01c08fbaeaccfe3e11cc08790432cc7e45 (patch)
tree0e9e7d954525345c69f4c48e5448c062358470b8 /llvm/lib/CodeGen/MachineFunction.cpp
parentf2419adc48cb59a0314833785976aece63061772 (diff)
downloadllvm-a4e71f01c08fbaeaccfe3e11cc08790432cc7e45.zip
llvm-a4e71f01c08fbaeaccfe3e11cc08790432cc7e45.tar.gz
llvm-a4e71f01c08fbaeaccfe3e11cc08790432cc7e45.tar.bz2
Assume ieee behavior without denormal-fp-math attribute
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 25a5f0a..d73417a 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -284,15 +284,7 @@ DenormalMode MachineFunction::getDenormalMode(const fltSemantics &FPType) const
// TODO: Should probably avoid the connection to the IR and store directly
// in the MachineFunction.
Attribute Attr = F.getFnAttribute("denormal-fp-math");
-
- // FIXME: This should assume IEEE behavior on an unspecified
- // attribute. However, the one current user incorrectly assumes a non-IEEE
- // target by default.
- StringRef Val = Attr.getValueAsString();
- if (Val.empty())
- return DenormalMode::getInvalid();
-
- return parseDenormalFPAttribute(Val);
+ return parseDenormalFPAttribute(Attr.getValueAsString());
}
/// Should we be emitting segmented stack stuff for the function