[commit: ghc] newcg: Improve the case-alternative heap checks (6525694)

Simon Marlow marlowsd at gmail.com
Wed Mar 7 16:08:28 CET 2012


Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : newcg

http://hackage.haskell.org/trac/ghc/changeset/65256948f73cc9e6eb4b9b2b25c085ef7a72004e

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

commit 65256948f73cc9e6eb4b9b2b25c085ef7a72004e
Author: Simon Marlow <marlowsd at gmail.com>
Date:   Wed Mar 7 15:06:47 2012 +0000

    Improve the case-alternative heap checks
    
    The code we were generating for heap-checks in algebraic case
    alternatives wasn't working well with the common-block eliminator.  A
    small tweak to make the heap-check failure jump back to the same place
    in all branches lets the common-block eliminator squash more code.

 compiler/codeGen/StgCmmExpr.hs |   71 ++++++++++++++++++++++++++++-----------
 compiler/codeGen/StgCmmHeap.hs |   50 +++++++++++++++++++++-------
 2 files changed, 89 insertions(+), 32 deletions(-)


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

    git show 65256948f73cc9e6eb4b9b2b25c085ef7a72004e



More information about the Cvs-ghc mailing list