[Git][ghc/ghc][master] Aarch64: Enable -mfma by default.
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Sat Jan 13 02:17:46 UTC 2024
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
7e95f738 by Andreas Klebinger at 2024-01-12T21:16:57-05:00
Aarch64: Enable -mfma by default.
Fixes #24311
- - - - -
2 changed files:
- compiler/GHC/Driver/DynFlags.hs
- docs/users_guide/using.rst
Changes:
=====================================
compiler/GHC/Driver/DynFlags.hs
=====================================
@@ -699,7 +699,8 @@ defaultDynFlags mySettings =
avx512er = False,
avx512f = False,
avx512pf = False,
- fma = False,
+ -- Use FMA by default on AArch64
+ fma = (platformArch . sTargetPlatform $ mySettings) == ArchAArch64,
maxInlineAllocSize = 128,
maxInlineMemcpyInsns = 32,
=====================================
docs/users_guide/using.rst
=====================================
@@ -1415,7 +1415,7 @@ messages and in GHCi:
The structure of the output is described by a `JSON Schema <https://json-schema.org/>`_.
The schema can be downloaded :download:`here <diagnostics-as-json-schema-1_0.json>`.
-
+
.. ghc-flag:: -fdiagnostics-color=⟨always|auto|never⟩
:shortdesc: Use colors in error messages
:type: dynamic
@@ -1761,6 +1761,8 @@ Some flags only make sense for particular target platforms.
:type: dynamic
:category: platform-options
+ :default: off by default, except for Aarch64 where it's on by default.
+
:since: 9.8.1
Use native FMA instructions to implement the fused multiply-add floating-point
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7e95f738620dc805868d198f980e1bdd53e27a2d
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7e95f738620dc805868d198f980e1bdd53e27a2d
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240112/f0bea2e7/attachment-0001.html>
More information about the ghc-commits
mailing list