aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorpaperchalice <liujunchang97@outlook.com>2025-08-29 09:52:07 +0800
committerGitHub <noreply@github.com>2025-08-29 09:52:07 +0800
commit205d461a19f88be9b2044d7c863c747907181981 (patch)
tree56c321868ae12a71ab3ff0d2a8a69e385d94032a /clang/lib/CodeGen/BackendUtil.cpp
parent63974d179b1f8694fe06117bb4dd893a3d352299 (diff)
downloadllvm-205d461a19f88be9b2044d7c863c747907181981.zip
llvm-205d461a19f88be9b2044d7c863c747907181981.tar.gz
llvm-205d461a19f88be9b2044d7c863c747907181981.tar.bz2
[IR][CodeGen] Remove "approx-func-fp-math" attribute (#155740)
Remove "approx-func-fp-math" attribute and related command line option, users should always use afn flag in IR. Resolve FIXME in `TargetMachine::resetTargetOptions` partially.
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r--clang/lib/CodeGen/BackendUtil.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
index 0b8b824..3f095c0 100644
--- a/clang/lib/CodeGen/BackendUtil.cpp
+++ b/clang/lib/CodeGen/BackendUtil.cpp
@@ -425,7 +425,6 @@ static bool initTargetOptions(const CompilerInstance &CI,
LangOptions::FPModeKind::FPM_Fast ||
LangOpts.getDefaultFPContractMode() ==
LangOptions::FPModeKind::FPM_FastHonorPragmas);
- Options.ApproxFuncFPMath = LangOpts.ApproxFunc;
Options.BBAddrMap = CodeGenOpts.BBAddrMap;
Options.BBSections =