summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2020-04-20 13:20:55 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-04-22 23:14:21 -0400
commitc29f0fa6ee831ec8a223561312d7176ef87a7ece (patch)
treeebc6fc1462006a9f260231fa57c19d3e5de75570
parent6f84aca31290afc11acde0f86969a535e519e1d5 (diff)
downloadhaskell-c29f0fa6ee831ec8a223561312d7176ef87a7ece.tar.gz
Add "ddump-cmm-opt" as alias for "ddump-opt-cmm".
-rw-r--r--compiler/GHC/Driver/Session.hs4
-rw-r--r--docs/users_guide/debugging.rst8
2 files changed, 10 insertions, 2 deletions
diff --git a/compiler/GHC/Driver/Session.hs b/compiler/GHC/Driver/Session.hs
index 94d3d771fc..eda031652f 100644
--- a/compiler/GHC/Driver/Session.hs
+++ b/compiler/GHC/Driver/Session.hs
@@ -2658,6 +2658,8 @@ dynamic_flags_deps = [
(setDumpFlag Opt_D_dump_cmm_info)
, make_ord_flag defGhcFlag "ddump-cmm-cps"
(setDumpFlag Opt_D_dump_cmm_cps)
+ , make_ord_flag defGhcFlag "ddump-cmm-opt"
+ (setDumpFlag Opt_D_dump_opt_cmm)
, make_ord_flag defGhcFlag "ddump-cfg-weights"
(setDumpFlag Opt_D_dump_cfg_weights)
, make_ord_flag defGhcFlag "ddump-core-stats"
@@ -2766,7 +2768,7 @@ dynamic_flags_deps = [
, make_ord_flag defGhcFlag "ddump-rn-stats"
(setDumpFlag Opt_D_dump_rn_stats)
- , make_ord_flag defGhcFlag "ddump-opt-cmm"
+ , make_ord_flag defGhcFlag "ddump-opt-cmm" --old alias for cmm-opt
(setDumpFlag Opt_D_dump_opt_cmm)
, make_ord_flag defGhcFlag "ddump-simpl-stats"
(setDumpFlag Opt_D_dump_simpl_stats)
diff --git a/docs/users_guide/debugging.rst b/docs/users_guide/debugging.rst
index ef23bf4566..fe9a180a4f 100644
--- a/docs/users_guide/debugging.rst
+++ b/docs/users_guide/debugging.rst
@@ -546,12 +546,18 @@ These flags dump various stages of the :ref:`native code generator's
<native-code-gen>` pipeline, which starts with C-\\- and produces native
assembler.
-.. ghc-flag:: -ddump-opt-cmm
+.. ghc-flag:: -ddump-cmm-opt
:shortdesc: Dump the results of C-\\- to C-\\- optimising passes
:type: dynamic
Dump the results of C-\\- to C-\\- optimising passes performed by the NCG.
+.. ghc-flag:: -ddump-opt-cmm
+ :shortdesc: Dump the results of C-\\- to C-\\- optimising passes
+ :type: dynamic
+
+ Alias for :ghc-flag:`-ddump-cmm-opt`
+
.. ghc-flag:: -ddump-asm-native
:shortdesc: Dump initial assembly
:type: dynamic