summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2020-04-20 13:20:55 +0200
committerAndreas Klebinger <klebinger.andreas@gmx.at>2020-04-20 19:15:18 -0400
commitc81264bf9102edff12d0db83698c12ecb6a18f4d (patch)
treeeb3bf72485b5245cdcb12fafd87f292dc6cf5dad
parentd5fae7da02cff1c7ec7b8e472f85d23aef098968 (diff)
downloadhaskell-wip/andreask/alias_cmm_opt.tar.gz
Add "ddump-cmm-opt" as alias for "ddump-opt-cmm".wip/andreask/alias_cmm_opt
-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 5ed6e093d7..9b9c65e181 100644
--- a/compiler/GHC/Driver/Session.hs
+++ b/compiler/GHC/Driver/Session.hs
@@ -2657,6 +2657,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"
@@ -2765,7 +2767,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