Don't adjust hp up when the case scrutinee won't allocate
authordias@eecs.harvard.edu <unknown>
Tue, 14 Oct 2008 11:26:18 +0000 (11:26 +0000)
committerdias@eecs.harvard.edu <unknown>
Tue, 14 Oct 2008 11:26:18 +0000 (11:26 +0000)
commit309f64a0fd319198308f6b76bd22f38001bb5df0
tree2f8b245c1f9f6544e0df4fa646e9f01d4e5a2d51
parent93d047a1096571b75d9911536aecaca547a6f947
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.
compiler/codeGen/StgCmmExpr.hs
compiler/codeGen/StgCmmLayout.hs
compiler/codeGen/StgCmmMonad.hs