diff --git a/llvm/include/llvm/Target/TargetOptions.h b/llvm/include/llvm/Target/TargetOptions.h index 0312515d11798..7af50691ec0e5 100644 --- a/llvm/include/llvm/Target/TargetOptions.h +++ b/llvm/include/llvm/Target/TargetOptions.h @@ -140,8 +140,7 @@ class TargetOptions { DebugStrictDwarf(false), Hotpatch(false), PPCGenScalarMASSEntries(false), JMCInstrument(false), EnableCFIFixup(false), MisExpect(false), XCOFFReadOnlyPointers(false), - VerifyArgABICompliance(true), - FPDenormalMode(DenormalMode::IEEE, DenormalMode::IEEE) {} + VerifyArgABICompliance(true) {} /// DisableFramePointerElim - This returns true if frame pointer elimination /// optimization should be disabled for the given machine function. @@ -413,25 +412,7 @@ class TargetOptions { /// Vector math library to use. VectorLibrary VecLib = VectorLibrary::NoLibrary; -private: - /// Flushing mode to assume in default FP environment. - DenormalMode FPDenormalMode; - - /// Flushing mode to assume in default FP environment, for float/vector of - /// float. - DenormalMode FP32DenormalMode; - public: - void setFPDenormalMode(DenormalMode Mode) { FPDenormalMode = Mode; } - - void setFP32DenormalMode(DenormalMode Mode) { FP32DenormalMode = Mode; } - - DenormalMode getRawFPDenormalMode() const { return FPDenormalMode; } - - DenormalMode getRawFP32DenormalMode() const { return FP32DenormalMode; } - - LLVM_ABI DenormalMode getDenormalMode(const fltSemantics &FPType) const; - /// What exception model to use ExceptionHandling ExceptionModel = ExceptionHandling::None; diff --git a/llvm/lib/CodeGen/CommandFlags.cpp b/llvm/lib/CodeGen/CommandFlags.cpp index 8f92ee30e221a..ef5eabccab480 100644 --- a/llvm/lib/CodeGen/CommandFlags.cpp +++ b/llvm/lib/CodeGen/CommandFlags.cpp @@ -601,11 +601,6 @@ codegen::InitTargetOptionsFromCodeGenFlags(const Triple &TheTriple) { Options.NoSignedZerosFPMath = getEnableNoSignedZerosFPMath(); Options.NoTrappingFPMath = getEnableNoTrappingFPMath(); - DenormalMode::DenormalModeKind DenormKind = getDenormalFPMath(); - - // FIXME: Should have separate input and output flags - Options.setFPDenormalMode(DenormalMode(DenormKind, DenormKind)); - Options.HonorSignDependentRoundingFPMathOption = getEnableHonorSignDependentRoundingFPMath(); if (getFloatABIForCalls() != FloatABI::Default)