patch applied (ghc): Don'
t dump floated bindings just outside a lambda
Simon Peyton Jones
simonpj at microsoft.com
Fri Feb 2 10:59:09 EST 2007
Fri Feb 2 07:54:52 PST 2007 simonpj at microsoft.com
* Don't dump floated bindings just outside a lambda
We do not want the FloatOut pass to transform
f = \x. e
to
f = let lvl = ... in \x.e
The arity pinned on f isn't right any more; and see
Note [Floating out of RHSs].
Core Lint is now spotting the arity lossage (for a letrec), which is
how I spotted this bug.
I also re-jigged the code around floatBind; it's a bit tidier now.
M ./compiler/simplCore/FloatOut.lhs -48 +48
More information about the Cvs-ghc
mailing list