[commit: ghc] wip/ww-noinline: Make constructor wrappers inline only during the final phase (b78cc64)
git at git.haskell.org
git at git.haskell.org
Tue Feb 19 14:13:42 UTC 2019
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/ww-noinline
Link : http://ghc.haskell.org/trac/ghc/changeset/b78cc64e923716ac0512c299f42d4d0012306c05/ghc
>---------------------------------------------------------------
commit b78cc64e923716ac0512c299f42d4d0012306c05
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
>---------------------------------------------------------------
b78cc64e923716ac0512c299f42d4d0012306c05
compiler/basicTypes/Id.hs | 8 +-
compiler/basicTypes/MkId.hs | 26 +--
compiler/coreSyn/CoreOpt.hs | 174 ++++++++++++++++++---
compiler/coreSyn/MkCore.hs | 15 +-
compiler/prelude/PrelRules.hs | 4 +-
compiler/simplCore/FloatIn.hs | 2 +-
compiler/simplCore/Simplify.hs | 74 +++++++--
.../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, 288 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 b78cc64e923716ac0512c299f42d4d0012306c05
More information about the ghc-commits
mailing list