[commit: ghc] master: Make sure we occurrence-analyse unfoldings (fixes Trac #8892) (87bbc69)

git at git.haskell.org git at git.haskell.org
Tue Mar 18 17:17:20 UTC 2014


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

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

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

commit 87bbc69c40d36046492d754c8d7ff02c3be6ce43
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.


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

87bbc69c40d36046492d754c8d7ff02c3be6ce43
 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 87bbc69c40d36046492d754c8d7ff02c3be6ce43


More information about the ghc-commits mailing list