From a4e71f01c08fbaeaccfe3e11cc08790432cc7e45 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Wed, 6 Nov 2019 10:26:43 -0800 Subject: Assume ieee behavior without denormal-fp-math attribute --- llvm/lib/CodeGen/MachineFunction.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'llvm/lib/CodeGen/MachineFunction.cpp') diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 25a5f0a92c0d..d73417aa1577 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 -- cgit v1.2.3