Tue Oct 14 04:26:18 PDT 2008 [EMAIL PROTECTED]
* Don't adjust hp up when the case scrutinee won't allocate
If the case scrutinee can't allocate, we don't need to do a heap
check in the case alternatives. (A previous patch got that right.)
In that case, we had better not adjust the heap pointer to recover
unused stack space before evaluating the scrutinee -- because we
aren't going to reallocate for the case alternative.
M ./compiler/codeGen/StgCmmExpr.hs -6 +6
M ./compiler/codeGen/StgCmmLayout.hs -12 +16
M ./compiler/codeGen/StgCmmMonad.hs -6 +4
View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20081014112618-feb93-54992270466cc6db29d23a2f54b78fb9f921579d.gz
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc