[commit: ghc] master: Cache the number of data cons in DataTyCon and SumTyCon (6c34824)

git at git.haskell.org git at git.haskell.org
Thu Jan 4 14:04:40 UTC 2018


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

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

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

commit 6c34824434a67baa34e4ee2ddb753708eb61c5bc
Author: Bartosz Nitka <niteria at gmail.com>
Date:   Tue Dec 26 12:54:27 2017 +0000

    Cache the number of data cons in DataTyCon and SumTyCon
    
    This is a follow-up after faf60e85 - Make tagForCon non-linear.
    On the mailing list @simonpj suggested to solve the
    linear behavior by caching the sizes.
    
    Test Plan: ./validate
    
    Reviewers: simonpj, simonmar, bgamari, austin
    
    Reviewed By: simonpj
    
    Subscribers: carter, goldfire, rwbarton, thomie, simonpj
    
    Differential Revision: https://phabricator.haskell.org/D4131


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

6c34824434a67baa34e4ee2ddb753708eb61c5bc
 compiler/codeGen/StgCmmClosure.hs              | 11 ++---
 compiler/iface/BuildTyCl.hs                    | 15 +-----
 compiler/prelude/TysWiredIn.hs                 | 65 ++++++++++++--------------
 compiler/types/TyCon.hs                        | 48 ++++++++++---------
 compiler/vectorise/Vectorise/Generic/PData.hs  |  4 +-
 compiler/vectorise/Vectorise/Type/TyConDecl.hs |  8 +++-
 6 files changed, 69 insertions(+), 82 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 6c34824434a67baa34e4ee2ddb753708eb61c5bc


More information about the ghc-commits mailing list