[commit: ghc] master: Inline data constructor wrappers in phase 2 only (fc6c222)

git at git.haskell.org git at git.haskell.org
Tue Feb 28 19:07:32 UTC 2017


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

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

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

commit fc6c222b90e68fed74a6bee6f087f47bf31f21c6
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Tue Feb 28 14:04:40 2017 -0500

    Inline data constructor wrappers in phase 2 only
    
    This patch prepares for my upcoming early-inlining patch. It arranges
    that data constructor wrappers are not inlined until Phase 2 (the
    first of the "normal" phases.)  That gives rules a chance to fire
    in the InitialPhase (aka "gentle").
    
    This has been a bit of a problem for a while, so it's nice to have
    a fix.  It should make no difference immediately, becuase currently
    nothing is inlined in the InitialPhase anyway.
    
    Reviewers: austin, bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D3193


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

fc6c222b90e68fed74a6bee6f087f47bf31f21c6
 compiler/basicTypes/MkId.hs                        |  22 +++-
 .../tests/deSugar/should_compile/T2431.stderr      |  46 ++++----
 .../tests/simplCore/should_compile/T7360.stderr    | 120 ++++++++++-----------
 3 files changed, 103 insertions(+), 85 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 fc6c222b90e68fed74a6bee6f087f47bf31f21c6


More information about the ghc-commits mailing list