[commit: ghc] wip/map-coerce-wrappers: Make constructor wrappers inline only during the final phase (9db7a8b)

git at git.haskell.org git at git.haskell.org
Sat Feb 16 10:33:12 UTC 2019


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

On branch  : wip/map-coerce-wrappers
Link       : http://ghc.haskell.org/trac/ghc/changeset/9db7a8b20f616b6a3ea4cbc04b6f38feda84fd87/ghc

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

commit 9db7a8b20f616b6a3ea4cbc04b6f38feda84fd87
Author: Arnaud Spiwack <arnaud.spiwack at tweag.io>
Date:   Thu Nov 15 17:14:31 2018 +0100

    Make constructor wrappers inline only during the final phase
    
    For case-of-known constructor to continue triggering early,
    exprIsConApp_maybe is now capable of looking through lets and cases.
    
    See #15840


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

9db7a8b20f616b6a3ea4cbc04b6f38feda84fd87
 compiler/basicTypes/Id.hs                          |   8 +-
 compiler/basicTypes/MkId.hs                        |  23 +--
 compiler/coreSyn/CoreOpt.hs                        | 164 +++++++++++++++++----
 compiler/coreSyn/MkCore.hs                         |  15 +-
 compiler/prelude/PrelRules.hs                      |   4 +-
 compiler/simplCore/FloatIn.hs                      |   2 +-
 compiler/simplCore/Simplify.hs                     |  70 ++++++---
 .../tests/deSugar/should_compile/T2431.stderr      |   5 +-
 .../tests/simplCore/should_compile/T7360.stderr    |   2 +-
 testsuite/tests/simplCore/should_run/T15840.hs     |  14 ++
 .../tests/simplCore/should_run/T15840.stdout       |   0
 testsuite/tests/simplCore/should_run/T15840a.hs    |  22 +++
 .../tests/simplCore/should_run/T15840a.stdout      |   1 +
 testsuite/tests/simplCore/should_run/all.T         |   2 +
 14 files changed, 271 insertions(+), 61 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 9db7a8b20f616b6a3ea4cbc04b6f38feda84fd87


More information about the ghc-commits mailing list