[commit: ghc] cardinality: Make the occurrence analyser propagate info into non-rec RHSs (b8b52a1)

Simon Peyton Jones simonpj at microsoft.com
Tue Mar 26 14:14:19 CET 2013


Repository : http://darcs.haskell.org/ghc.git/

On branch  : cardinality

https://github.com/ghc/ghc/commit/b8b52a15c4b71420f77ad9eb5a40e4c1078cf9ab

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

commit b8b52a15c4b71420f77ad9eb5a40e4c1078cf9ab
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Tue Mar 26 13:13:10 2013 +0000

    Make the occurrence analyser propagate info into non-rec RHSs
    
    See Note [Use one-shot info] in OccurAnal, second bullet.
    
    This one change produced some useful wins
    
            Program           Size    Allocs   Runtime   Elapsed  TotalMem
    --------------------------------------------------------------------------------
                hpg          +0.0%     -2.4%     -4.3%     -4.8%     +0.0%
       k-nucleotide          -0.0%     -7.1%     -0.3%     -0.3%     +0.0%
             sphere          +0.0%     -5.6%      0.08      0.08     +0.0%
    --------------------------------------------------------------------------------
                Min          -0.1%     -7.1%    -10.7%    -11.0%    -33.3%
                Max          +0.1%     +0.2%    +15.4%    +15.4%     +1.7%
     Geometric Mean          +0.0%     -0.2%     -0.1%     -0.2%     -0.7%

 compiler/basicTypes/Demand.lhs   | 40 +++++++++++------
 compiler/simplCore/OccurAnal.lhs | 93 +++++++++++++++++++++++++---------------
 2 files changed, 87 insertions(+), 46 deletions(-)


Diff suppressed because of size. To see it, use:

    git show b8b52a15c4b71420f77ad9eb5a40e4c1078cf9ab



More information about the ghc-commits mailing list