diff options
author | paperchalice <liujunchang97@outlook.com> | 2025-10-10 15:56:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-10 15:56:29 +0800 |
commit | 2aeefcf40f513b56ccb74abe851415a81a02d1b8 (patch) | |
tree | 022819fdaca2df5efcd3ca513c719b8224e911fe /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 187a8e3e086ae8e4e62929847ff2d11ebf77d4a9 (diff) | |
download | llvm-2aeefcf40f513b56ccb74abe851415a81a02d1b8.zip llvm-2aeefcf40f513b56ccb74abe851415a81a02d1b8.tar.gz llvm-2aeefcf40f513b56ccb74abe851415a81a02d1b8.tar.bz2 |
[clang][CodeGen] Remove "unsafe-fp-math" attribute support (#162779)
These global flags block furthur improvements for clang, users should
always use fast-math flags
see also
https://discourse.llvm.org/t/rfc-honor-pragmas-with-ffp-contract-fast/80797
Remove them incrementally, this is the clang part.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index acf8de4..8862853 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -183,11 +183,6 @@ void CodeGenFunction::CGFPOptionsRAII::ConstructorHelper(FPOptions FPFeatures) { mergeFnAttrValue("no-infs-fp-math", FPFeatures.getNoHonorInfs()); mergeFnAttrValue("no-nans-fp-math", FPFeatures.getNoHonorNaNs()); mergeFnAttrValue("no-signed-zeros-fp-math", FPFeatures.getNoSignedZero()); - mergeFnAttrValue( - "unsafe-fp-math", - FPFeatures.getAllowFPReassociate() && FPFeatures.getAllowReciprocal() && - FPFeatures.getAllowApproxFunc() && FPFeatures.getNoSignedZero() && - FPFeatures.allowFPContractAcrossStatement()); } CodeGenFunction::CGFPOptionsRAII::~CGFPOptionsRAII() { |