[commit: ghc] master: Cleanup StgCmm pass (e5374a1)

git at git.haskell.org git at git.haskell.org
Tue Aug 20 18:19:53 CEST 2013


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

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

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

commit e5374a1b3ac11851576f8835e19d9fc92d7735c3
Author: Jan Stolarek <jan.stolarek at p.lodz.pl>
Date:   Tue Aug 20 11:53:05 2013 +0100

    Cleanup StgCmm pass
    
    This cleanup includes:
      * removing dead code. This includes forkStatics function,
        which was in fact one big noop, and global bindings in
        CgInfoDownwards,
      * converting functions that used FCode monad only to
        access DynFlags into functions that take DynFlags
        as a parameter and don't work in a monad,
      * addBindC function is now smarter. It extracts Id from
        CgIdInfo passed to it in the same way addBindsC does.
        Previously this was done at every call site, which was
        redundant.


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

e5374a1b3ac11851576f8835e19d9fc92d7735c3
 compiler/codeGen/StgCmm.hs       |   20 +++++++-------
 compiler/codeGen/StgCmmBind.hs   |   38 +++++++++++++--------------
 compiler/codeGen/StgCmmCon.hs    |   15 +++++------
 compiler/codeGen/StgCmmEnv.hs    |   53 ++++++++++++--------------------------
 compiler/codeGen/StgCmmExpr.hs   |    8 +++---
 compiler/codeGen/StgCmmLayout.hs |   18 ++++++-------
 compiler/codeGen/StgCmmMonad.hs  |   29 ++-------------------
 7 files changed, 66 insertions(+), 115 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 e5374a1b3ac11851576f8835e19d9fc92d7735c3




More information about the ghc-commits mailing list