diff options
author | Andreas Klebinger <klebinger.andreas@gmx.at> | 2020-02-06 19:04:35 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-02-09 02:55:46 -0500 |
commit | b2e18e26c34424ab814453a73404429cdf1a4d4a (patch) | |
tree | f25f162089491464cf8cfc28bfa87b09899fed3d /compiler/main | |
parent | 82f9be8c6aafb70f612e72bef517c76437726c78 (diff) | |
download | haskell-b2e18e26c34424ab814453a73404429cdf1a4d4a.tar.gz |
Fix -ddump-stg-final.
Once again make sure this dumps the STG used for codegen.
Diffstat (limited to 'compiler/main')
-rw-r--r-- | compiler/main/HscMain.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/main/HscMain.hs b/compiler/main/HscMain.hs index 24a429b7ae..8ce49e4aab 100644 --- a/compiler/main/HscMain.hs +++ b/compiler/main/HscMain.hs @@ -1557,6 +1557,8 @@ doCodeGen hsc_env this_mod data_tycons let stg_binds_w_fvs = annTopBindingsFreeVars stg_binds + dumpIfSet_dyn dflags Opt_D_dump_stg_final "Final STG:" FormatSTG (pprGenStgTopBindings stg_binds_w_fvs) + let cmm_stream :: Stream IO CmmGroup () -- See Note [Forcing of stg_binds] cmm_stream = stg_binds_w_fvs `seqList` {-# SCC "StgToCmm" #-} @@ -1588,7 +1590,6 @@ doCodeGen hsc_env this_mod data_tycons return (Stream.mapM dump2 pipeline_stream) - myCoreToStg :: DynFlags -> Module -> CoreProgram -> IO ( [StgTopBinding] -- output program , CollectedCCs ) -- CAF cost centre info (declared and used) |