[commit: ghc] master: Fix a long-standing bug in the demand analyser (9f0f99f)

git at git.haskell.org git at git.haskell.org
Tue Apr 7 14:10:44 UTC 2015


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

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

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

commit 9f0f99fd41ff82cc223d3b682703e508efb564d2
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Mon Apr 6 14:10:52 2015 +0100

    Fix a long-standing bug in the demand analyser
    
    This patch fixes Trac #10148, an outright and egregious
    bug in the demand analyser.
    
    It is explained in Note [Demand on case-alternative binders]
    in Demand.hs.
    
    I did some other minor refactoring.
    
    To my astonishment I got some big compiler perf changes
    
    * perf/compiler/T5837: bytes allocated -76%
    * perf/compiler/T5030: bytes allocated -10%
    * perf/compiler/T3294: max bytes used  -25%
    
    Happy days


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

9f0f99fd41ff82cc223d3b682703e508efb564d2
 compiler/basicTypes/Demand.hs |  58 ++++++++++++-
 compiler/stranal/DmdAnal.hs   | 194 ++++++++++++++++++++++++------------------
 2 files changed, 165 insertions(+), 87 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 9f0f99fd41ff82cc223d3b682703e508efb564d2


More information about the ghc-commits mailing list