Common subexpression elemination (CSE)

Dinko Tenev dinko.tenev at
Tue Nov 28 04:34:17 EST 2006

On 11/27/06, Lennart Augustsson <lennart at> wrote:
> GHC doesn't normally do CSE.  CSE can cause space leaks, so you can't
> do it willy-nilly.
> I'm sure there are some strict contexts where it could be done
> safely, but I don't think ghc uses that information (yet).
>         -- Lennart

My apologies in advance for asking possibly stupid questions, but I don't
understand this.

How exactly can CSE cause space leaks, and what does this have to do with


-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Glasgow-haskell-users mailing list