summaryrefslogtreecommitdiff
path: root/compiler/GHC.hs
diff options
context:
space:
mode:
authordoyougnu <jeffrey.young@iohk.io>2023-04-06 09:39:59 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-05-09 18:40:01 -0400
commit64064cfee57161bb42ef5c17bbe434185893ee5f (patch)
tree11fe59a73d2303c2010e431b7d3b9c6092838fcb /compiler/GHC.hs
parent6b29154de6b63597553c5b69b9974c8838a7a80a (diff)
downloadhaskell-64064cfee57161bb42ef5c17bbe434185893ee5f.tar.gz
JS: add GHC.JS.Optimizer, remove RTS.Printer, add Linker.Opt
This MR changes some simple optimizations and is a first step in re-architecting the JS backend pipeline to add the optimizer. In particular it: - removes simple peep hole optimizations from `GHC.StgToJS.Printer` and removes that module - adds module `GHC.JS.Optimizer` - defines the same peep hole opts that were removed only now they are `Syntax -> Syntax` transformations rather than `Syntax -> JS code` optimizations - hooks the optimizer into code gen - adds FuncStat and ForStat constructors to the backend. Working Ticket: - #22736 Related MRs: - MR !10142 - MR !10000 ------------------------- Metric Decrease: CoOpt_Read ManyAlternatives PmSeriesS PmSeriesT PmSeriesV T10421 T12707 T13253 T13253-spj T15164 T17516 T18140 T18282 T18698a T18698b T18923 T1969 T19695 T20049 T3064 T5321FD T5321Fun T783 T9198 T9233 T9630 -------------------------
Diffstat (limited to 'compiler/GHC.hs')
0 files changed, 0 insertions, 0 deletions