[commit: ghc] wip/ww-noinline: Look through newtype wrappers (Trac #16254) (7833cf4)

git at git.haskell.org git at git.haskell.org
Tue Feb 19 14:13:37 UTC 2019


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

On branch  : wip/ww-noinline
Link       : http://ghc.haskell.org/trac/ghc/changeset/7833cf407d1f608bebb1d38bb99d3035d8d735e6/ghc

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

commit 7833cf407d1f608bebb1d38bb99d3035d8d735e6
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.


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

7833cf407d1f608bebb1d38bb99d3035d8d735e6
 compiler/basicTypes/Id.hs                          |  9 +++-
 compiler/coreSyn/CoreOpt.hs                        | 58 +++++++++++++++++++---
 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, 71 insertions(+), 11 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 7833cf407d1f608bebb1d38bb99d3035d8d735e6


More information about the ghc-commits mailing list