Tighten up the definition of arityType a bit further,
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 11 Nov 2011 20:08:42 +0000 (20:08 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 11 Nov 2011 20:08:42 +0000 (20:08 +0000)
commita522c3b25eea1fe40edae7052335acce75e8a1c3
tree7b94b4d8917a5da8d04dff03a67014708b949803
parent06229a8a3d27320d51a80f5add2b307ba0eca597
Tighten up the definition of arityType a bit further,
to make Trac #5625 work.  The main change is that
we eta-expand (case x of p -> \y. blah) only if the
case-expression is in the context of a \x.  That is still
technically unsound, but it makes a big difference to
performance; and the change narrows the unsound cases
a lot.
compiler/coreSyn/CoreArity.lhs