diff options
-rw-r--r-- | compiler/GHC/Driver/Session.hs | 4 | ||||
-rw-r--r-- | docs/users_guide/debugging.rst | 8 |
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 |