[PATCH] D107994: Making the code compliant to the documentation about Floating Point support default values for C/C++. FPP-MODEL=PRECISE enables FFP-CONTRACT (FMA is enabled).
Zahira Ammarguellat via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 15 11:34:53 PST 2021
zahiraam updated this revision to Diff 387337.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107994/new/
https://reviews.llvm.org/D107994
Files:
clang/docs/ReleaseNotes.rst
Index: clang/docs/ReleaseNotes.rst
===================================================================
--- clang/docs/ReleaseNotes.rst
+++ clang/docs/ReleaseNotes.rst
@@ -205,11 +205,16 @@
Floating Point Support in Clang
-------------------------------
-- The -ffp-model=precise now implies -ffp-contract=on rather than
- -ffp-contract=fast, and the documentation of these features has been
- clarified. Previously, the documentation claimed that -ffp-model=precise was
- the default, but this was incorrect because the precise model implied
- -ffp-contract=fast, whereas the default behavior is -ffp-contract=on.
+- The default setting of FP contraction (FMA) is now -ffp-contract=on (for
+ languages other than CUDA/HIP) even when optimization is off. Previously,
+ the default behavior was equivalent to -ffp-contract=off (-ffp-contract
+ was not set).
+ Related to this, the switch -ffp-model=precise now implies -ffp-contract=on
+ rather than -ffp-contract=fast, and the documentation of these features has
+ been clarified. Previously, the documentation claimed that -ffp-model=precise
+ was the default, but this was incorrect because the precise model implied
+ -ffp-contract=fast, wheras the (now corrected) default behavior is
+ -ffp-contract=on.
-ffp-model=precise is now exactly the default mode of the compiler.
Internal API Changes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107994.387337.patch
Type: text/x-patch
Size: 1369 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211115/00b9bb4a/attachment.bin>
More information about the cfe-commits
mailing list