[commit: ghc] master: Call Arity: Never eta-expand thunks in recursive groups (306d255)

git at git.haskell.org git at git.haskell.org
Fri Mar 14 17:27:09 UTC 2014


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

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

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

commit 306d255de6c33a2430822524bc81d07ec5c1e456
Author: Joachim Breitner <mail at joachim-breitner.de>
Date:   Fri Mar 14 18:25:07 2014 +0100

    Call Arity: Never eta-expand thunks in recursive groups
    
    Even if the recursion is a nice tail-call only recusion, we'd stil be
    calling the thunk multiple times and eta-expansion would be wrong.
    Includes a [Note].
    
    (Also shows the disadvantage of unit tests: They had the same bug.)


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

306d255de6c33a2430822524bc81d07ec5c1e456
 compiler/simplCore/CallArity.hs                    |   73 +++++++++++++-------
 testsuite/tests/callarity/unittest/CallArity1.hs   |   15 +---
 .../tests/callarity/unittest/CallArity1.stderr     |   16 +----
 3 files changed, 51 insertions(+), 53 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 306d255de6c33a2430822524bc81d07ec5c1e456


More information about the ghc-commits mailing list