diff options
author | nineonine <mail4chemik@gmail.com> | 2022-02-10 00:10:19 -0800 |
---|---|---|
committer | nineonine <mail4chemik@gmail.com> | 2022-02-14 11:37:31 -0800 |
commit | f87bd8c930c2a0c6c5e77da9b442bc0603df9071 (patch) | |
tree | 14ba39e2132e86e36a9e68d80fc914ec60630190 /compiler | |
parent | ef5cf55d71e84a0a42596b4ec253ecb0d63f149b (diff) | |
download | haskell-wip/T21052.tar.gz |
ghci: fix -ddump-stg-cg (#21052)wip/T21052
The pre-codegen Stg AST dump was not available in ghci because it
was performed in 'doCodeGen'. This was now moved to 'coreToStg' area.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/GHC/Driver/Main.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/GHC/Driver/Main.hs b/compiler/GHC/Driver/Main.hs index b07d566a5b..d0d29a83e7 100644 --- a/compiler/GHC/Driver/Main.hs +++ b/compiler/GHC/Driver/Main.hs @@ -1803,9 +1803,6 @@ doCodeGen hsc_env this_mod denv data_tycons tmpfs = hsc_tmpfs hsc_env platform = targetPlatform dflags - putDumpFileMaybe logger Opt_D_dump_stg_cg "CodeGenInput STG:" FormatSTG - (pprGenStgTopBindings (initStgPprOpts dflags) stg_binds_w_fvs) - -- Do tag inference on optimized STG (!stg_post_infer,export_tag_info) <- {-# SCC "StgTagFields" #-} inferTags dflags logger this_mod stg_binds_w_fvs @@ -1891,6 +1888,9 @@ myCoreToStg logger dflags ictxt for_bytecode this_mod ml prepd_binds = do stg2stg logger ictxt (initStgPipelineOpts dflags for_bytecode) this_mod stg_binds + putDumpFileMaybe logger Opt_D_dump_stg_cg "CodeGenInput STG:" FormatSTG + (pprGenStgTopBindings (initStgPprOpts dflags) stg_binds_with_fvs) + return (stg_binds_with_fvs, denv, cost_centre_info) {- ********************************************************************** |