[commit: ghc] master: Improve TidyPgm.hasCafRefs to account for Integer literals (Trac #8525) (6b11bab)

git at git.haskell.org git at git.haskell.org
Wed Dec 17 14:45:50 UTC 2014


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

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

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

commit 6b11bab6961a1518a15eaa3d3b4ce40702724ca5
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Tue Dec 16 17:53:00 2014 +0000

    Improve TidyPgm.hasCafRefs to account for Integer literals (Trac #8525)
    
    See Note [Disgusting computation of CafRefs] in TidyPgm.
    
    Also affects CoreUtils.rhsIsStatic.
    
    The real solution here is to compute CAF and arity information
    from the STG-program, and feed it back to tidied program for
    the interface file and later GHCi clients.  A battle for another
    day.
    
    But at least this commit reduces the number of gratuitous CAFs, and
    hence SRT entries.  And kills off a batch of ASSERT failures.


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

6b11bab6961a1518a15eaa3d3b4ce40702724ca5
 compiler/coreSyn/CorePrep.hs      |   2 +
 compiler/coreSyn/CoreUtils.hs     |  25 ++++++----
 compiler/main/TidyPgm.hs          | 100 +++++++++++++++++++++-----------------
 testsuite/tests/lib/integer/all.T |   3 +-
 4 files changed, 74 insertions(+), 56 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 6b11bab6961a1518a15eaa3d3b4ce40702724ca5


More information about the ghc-commits mailing list