[commit: ghc] wip/inlining-late: Look through newtype wrappers (Trac #16254) (55f768f)

git at git.haskell.org git at git.haskell.org
Fri Feb 8 17:50:05 UTC 2019


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

On branch  : wip/inlining-late
Link       : http://ghc.haskell.org/trac/ghc/changeset/55f768ffd40ecebca139849850a04a05420852db/ghc

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

commit 55f768ffd40ecebca139849850a04a05420852db
Author: Krzysztof Gogolewski <krzysztof.gogolewski at tweag.io>
Date:   Thu Jan 24 17:58:50 2019 +0100

    Look through newtype wrappers (Trac #16254)
    
    exprIsConApp_maybe could detect that I# 10 is a constructor application,
    but not that Size (I# 10) is, because it was an application with a
    nontrivial argument.


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

55f768ffd40ecebca139849850a04a05420852db
 compiler/basicTypes/Id.hs                          |  9 +++-
 compiler/coreSyn/CoreOpt.hs                        | 51 ++++++++++++++++++++--
 compiler/coreSyn/CoreUtils.hs                      |  1 +
 testsuite/tests/simplCore/should_compile/Makefile  |  5 +++
 .../should_compile/{T5327.hs => T16254.hs}         |  8 ++--
 .../should_compile/T16254.stdout}                  |  0
 testsuite/tests/simplCore/should_compile/all.T     |  1 +
 7 files changed, 68 insertions(+), 7 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 55f768ffd40ecebca139849850a04a05420852db


More information about the ghc-commits mailing list