[commit: ghc] wip/T12618: Compress arguments to ConApp (a875ab3)

git at git.haskell.org git at git.haskell.org
Sat Oct 22 00:07:42 UTC 2016


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

On branch  : wip/T12618
Link       : http://ghc.haskell.org/trac/ghc/changeset/a875ab3b4c3bce7e52ffa270f4c82e79f62b3fb8/ghc

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

commit a875ab3b4c3bce7e52ffa270f4c82e79f62b3fb8
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Thu Oct 20 19:11:37 2016 -0400

    Compress arguments to ConApp
    
    I really wish I could use pattern synonyms (with exhaustiveness checks)
    here, would make the code much nicer.
    
    ConApp stores compressed arguments, mkConApp and collectConArgs compress
    resp. decompress.
    
    A promising number of places to not have to decompress the arguments!


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

a875ab3b4c3bce7e52ffa270f4c82e79f62b3fb8
 compiler/basicTypes/MkId.hs                        |  2 +-
 compiler/coreSyn/CoreFVs.hs                        | 20 ++++---
 compiler/coreSyn/CoreLint.hs                       |  6 +-
 compiler/coreSyn/CorePrep.hs                       | 28 ++++-----
 compiler/coreSyn/CoreSeq.hs                        |  2 +-
 compiler/coreSyn/CoreStats.hs                      |  2 +-
 compiler/coreSyn/CoreSubst.hs                      | 11 ++--
 compiler/coreSyn/CoreSyn.hs                        |  9 +--
 compiler/coreSyn/CoreTidy.hs                       |  2 +-
 compiler/coreSyn/CoreUnfold.hs                     |  6 +-
 compiler/coreSyn/CoreUtils.hs                      | 70 +++++++++++++++++-----
 compiler/coreSyn/MkCore.hs                         |  6 +-
 compiler/coreSyn/PprCore.hs                        | 13 ++--
 compiler/coreSyn/TrieMap.hs                        | 12 ++--
 compiler/deSugar/DsBinds.hs                        |  3 +-
 compiler/deSugar/DsCCall.hs                        |  6 +-
 compiler/deSugar/DsListComp.hs                     |  8 +--
 compiler/deSugar/DsUtils.hs                        |  4 +-
 compiler/ghc.cabal.in                              |  1 +
 compiler/ghc.mk                                    |  1 +
 compiler/ghci/ByteCodeGen.hs                       |  3 +-
 compiler/iface/MkIface.hs                          |  6 +-
 compiler/iface/TcIface.hs                          |  2 +-
 compiler/main/StaticPtrTable.hs                    |  4 +-
 compiler/main/TidyPgm.hs                           |  4 +-
 compiler/prelude/PrelRules.hs                      | 13 ++--
 compiler/simplCore/CSE.hs                          |  2 +-
 compiler/simplCore/CallArity.hs                    |  6 +-
 compiler/simplCore/FloatOut.hs                     |  6 +-
 compiler/simplCore/LiberateCase.hs                 |  2 +-
 compiler/simplCore/OccurAnal.hs                    |  7 ++-
 compiler/simplCore/SAT.hs                          |  5 +-
 compiler/simplCore/SetLevels.hs                    |  5 +-
 compiler/simplCore/Simplify.hs                     | 17 +++---
 compiler/specialise/Rules.hs                       |  6 +-
 compiler/specialise/SpecConstr.hs                  | 14 +++--
 compiler/specialise/Specialise.hs                  |  6 +-
 compiler/stgSyn/CoreToStg.hs                       |  6 +-
 compiler/stranal/DmdAnal.hs                        |  6 +-
 compiler/stranal/WorkWrap.hs                       |  4 +-
 compiler/types/CompressArgs.hs                     | 46 ++++++++++++++
 compiler/types/Type.hs                             |  7 +++
 compiler/vectorise/Vectorise/Exp.hs                |  6 +-
 .../tests/simplCore/should_compile/T7360.stderr    |  4 +-
 .../simplCore/should_compile/spec-inline.stderr    | 12 ++--
 45 files changed, 267 insertions(+), 144 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 a875ab3b4c3bce7e52ffa270f4c82e79f62b3fb8


More information about the ghc-commits mailing list