[commit: ghc] master: Merge FUN_STATIC closure with its SRT (838b690)

git at git.haskell.org git at git.haskell.org
Wed May 16 12:36:42 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/838b69032566ce6ab3918d70e8d5e098d0bcee02/ghc

>---------------------------------------------------------------

commit 838b69032566ce6ab3918d70e8d5e098d0bcee02
Author: Simon Marlow <marlowsd at gmail.com>
Date:   Sun Apr 22 19:34:32 2018 +0100

    Merge FUN_STATIC closure with its SRT
    
    Summary:
    The idea here is to save a little code size and some work in the GC,
    by collapsing FUN_STATIC closures and their SRTs.
    
    This is (4) in a series; see D4632 for more details.
    
    There's a tradeoff here: more complexity in the compiler in exchange
    for a modest code size reduction (probably around 0.5%).
    
    Results:
    * GHC binary itself (statically linked) is 1% smaller
    * -0.2% binary sizes in nofib (-0.5% module sizes)
    
    Full nofib results comparing D4634 with this: P177 (ignore runtimes,
    these aren't stable on my laptop)
    
    Test Plan: validate, nofib
    
    Reviewers: bgamari, niteria, simonpj, erikd
    
    Subscribers: thomie, carter
    
    Differential Revision: https://phabricator.haskell.org/D4637


>---------------------------------------------------------------

838b69032566ce6ab3918d70e8d5e098d0bcee02
 compiler/cmm/Cmm.hs                  |   7 +-
 compiler/cmm/CmmBuildInfoTables.hs   | 224 +++++++++++++++++++++--------------
 compiler/cmm/CmmInfo.hs              |   3 +-
 compiler/cmm/CmmParse.y              |  12 +-
 compiler/codeGen/StgCmmBind.hs       |  22 ++--
 compiler/codeGen/StgCmmClosure.hs    |  19 ++-
 includes/rts/storage/ClosureMacros.h |   3 -
 rts/RetainerProfile.c                |   2 +-
 rts/sm/Compact.c                     |   2 +-
 rts/sm/Evac.c                        |   4 +-
 rts/sm/Sanity.c                      |   2 +-
 rts/sm/Scav.c                        |   4 +-
 12 files changed, 182 insertions(+), 122 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 838b69032566ce6ab3918d70e8d5e098d0bcee02


More information about the ghc-commits mailing list