[commit: ghc] ghc-7.8: Make sure we occurrence-analyse unfoldings (fixes Trac #8892) (632956d)

git at git.haskell.org git at git.haskell.org
Sun Mar 23 20:37:50 UTC 2014


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

On branch  : ghc-7.8
Link       : http://ghc.haskell.org/trac/ghc/changeset/632956d089071969e52de65f27c810dd926e3a79/ghc

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

commit 632956d089071969e52de65f27c810dd926e3a79
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Tue Mar 18 17:10:18 2014 +0000

    Make sure we occurrence-analyse unfoldings (fixes Trac #8892)
    
    For DFunUnfoldings we were failing to occurrence-analyse the unfolding,
    and that meant that a loop breaker wasn't marked as such, which in turn
    meant it was inlined away when it still had occurrence sites.  See
    Note [Occurrrence analysis of unfoldings] in CoreUnfold.
    
    This is a pretty long-standing bug, happily nailed by John Lato.
    
    (cherry picked from commit 87bbc69c40d36046492d754c8d7ff02c3be6ce43)


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

632956d089071969e52de65f27c810dd926e3a79
 compiler/coreSyn/CoreUnfold.lhs |   25 ++++++++++++-
 compiler/simplCore/Simplify.lhs |   78 +++++++++++++++++++--------------------
 2 files changed, 62 insertions(+), 41 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 632956d089071969e52de65f27c810dd926e3a79


More information about the ghc-commits mailing list