[commit: ghc] wip/map-coerce-wrappers: Look through newtype wrappers (Trac #16254) (0b5aff8)
git at git.haskell.org
git at git.haskell.org
Sat Feb 16 10:33:08 UTC 2019
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/map-coerce-wrappers
Link : http://ghc.haskell.org/trac/ghc/changeset/0b5aff8e9ec711e2bdcd476577ce209fa17c8512/ghc
>---------------------------------------------------------------
commit 0b5aff8e9ec711e2bdcd476577ce209fa17c8512
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.
>---------------------------------------------------------------
0b5aff8e9ec711e2bdcd476577ce209fa17c8512
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 0b5aff8e9ec711e2bdcd476577ce209fa17c8512
More information about the ghc-commits
mailing list