[clang] [clang] Remove rest TargetOptions::UnsafeFPMath use (PR #164525)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 21 18:02:14 PDT 2025
https://github.com/paperchalice created https://github.com/llvm/llvm-project/pull/164525
This should be the last use in clang.
>From 14b69487858255bcbbad50dee4dec50cbfa6d796 Mon Sep 17 00:00:00 2001
From: PaperChalice <liujunchang97 at outlook.com>
Date: Wed, 22 Oct 2025 08:57:25 +0800
Subject: [PATCH] [clang] Remove rest TargetOptions::UnsafeFPMath uses
---
clang/lib/CodeGen/BackendUtil.cpp | 6 ------
1 file changed, 6 deletions(-)
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index 602068436101b..ecfbcb5970092 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -430,12 +430,6 @@ static bool initTargetOptions(const CompilerInstance &CI,
Options.NoInfsFPMath = LangOpts.NoHonorInfs;
Options.NoNaNsFPMath = LangOpts.NoHonorNaNs;
Options.NoZerosInBSS = CodeGenOpts.NoZeroInitializedInBSS;
- Options.UnsafeFPMath = LangOpts.AllowFPReassoc && LangOpts.AllowRecip &&
- LangOpts.NoSignedZero && LangOpts.ApproxFunc &&
- (LangOpts.getDefaultFPContractMode() ==
- LangOptions::FPModeKind::FPM_Fast ||
- LangOpts.getDefaultFPContractMode() ==
- LangOptions::FPModeKind::FPM_FastHonorPragmas);
Options.BBAddrMap = CodeGenOpts.BBAddrMap;
Options.BBSections =
More information about the cfe-commits
mailing list