[commit: ghc] wip/inlining-late: Make constructor wrappers inline only during the final phase (a4fe376)
git at git.haskell.org
git at git.haskell.org
Fri Feb 8 17:49:57 UTC 2019
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/inlining-late
Link : http://ghc.haskell.org/trac/ghc/changeset/a4fe376a5fec9097d72605fd023d9cd822b5d763/ghc
>---------------------------------------------------------------
commit a4fe376a5fec9097d72605fd023d9cd822b5d763
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
>---------------------------------------------------------------
a4fe376a5fec9097d72605fd023d9cd822b5d763
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 a4fe376a5fec9097d72605fd023d9cd822b5d763
More information about the ghc-commits
mailing list