Skip to content

Commit 1e15596

Browse files
paperchaliceaokblast
authored andcommitted
[clang] Remove rest TargetOptions::UnsafeFPMath use (llvm#164525)
This should be the last use in clang.
1 parent 3402e20 commit 1e15596

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

clang/lib/CodeGen/BackendUtil.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -430,12 +430,6 @@ static bool initTargetOptions(const CompilerInstance &CI,
430430
Options.NoInfsFPMath = LangOpts.NoHonorInfs;
431431
Options.NoNaNsFPMath = LangOpts.NoHonorNaNs;
432432
Options.NoZerosInBSS = CodeGenOpts.NoZeroInitializedInBSS;
433-
Options.UnsafeFPMath = LangOpts.AllowFPReassoc && LangOpts.AllowRecip &&
434-
LangOpts.NoSignedZero && LangOpts.ApproxFunc &&
435-
(LangOpts.getDefaultFPContractMode() ==
436-
LangOptions::FPModeKind::FPM_Fast ||
437-
LangOpts.getDefaultFPContractMode() ==
438-
LangOptions::FPModeKind::FPM_FastHonorPragmas);
439433

440434
Options.BBAddrMap = CodeGenOpts.BBAddrMap;
441435
Options.BBSections =

0 commit comments

Comments
 (0)