[commit: ghc] master: Honor INLINE on 0-arity bindings (#15578) (b9b1f99)

git at git.haskell.org git at git.haskell.org
Thu Sep 13 09:38:16 UTC 2018


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/b9b1f99954e69f23e9647d00e048938d5509ec14/ghc

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

commit b9b1f99954e69f23e9647d00e048938d5509ec14
Author: Tobias Dammers <tdammers at gmail.com>
Date:   Thu Sep 13 10:21:49 2018 +0200

    Honor INLINE on 0-arity bindings (#15578)
    
    Summary:
    Fix test for #15578
    
    By allowing 0-arity values to be inlined, we end up changing boringness
    annotations, and this gets reflected in the Core output for this
    particular test.
    
    Add Notes for #15578
    
    Test Plan: ./validate
    
    Reviewers: simonpj, bgamari
    
    Reviewed By: simonpj
    
    Subscribers: rwbarton, carter
    
    GHC Trac Issues: #15578
    
    Differential Revision: https://phabricator.haskell.org/D5137


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

b9b1f99954e69f23e9647d00e048938d5509ec14
 compiler/coreSyn/CoreUnfold.hs                     | 73 +++++++++++++++++++-
 compiler/simplCore/Simplify.hs                     | 16 ++++-
 testsuite/tests/perf/should_run/T15578.hs          | 80 ++++++++++++++++++++++
 testsuite/tests/perf/should_run/all.T              |  9 +++
 .../tests/simplCore/should_compile/T7360.stderr    |  2 +-
 5 files changed, 175 insertions(+), 5 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 b9b1f99954e69f23e9647d00e048938d5509ec14


More information about the ghc-commits mailing list