[Git][ghc/ghc][wip/andreask/aarch_fma] Aarch64: Enable -mfma by default.
Andreas Klebinger (@AndreasK)
gitlab at gitlab.haskell.org
Thu Jan 11 14:24:09 UTC 2024
Andreas Klebinger pushed to branch wip/andreask/aarch_fma at Glasgow Haskell Compiler / GHC
Commits:
5ebac014 by Andreas Klebinger at 2024-01-11T15:10:44+01: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/5ebac0143686d56b5d57a372a2b859159bb48e89
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/5ebac0143686d56b5d57a372a2b859159bb48e89
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/20240111/91dd9549/attachment-0001.html>
More information about the ghc-commits
mailing list