Fix free-variable finder
authorsimonpj@microsoft.com <unknown>
Thu, 2 Mar 2006 17:52:47 +0000 (17:52 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 2 Mar 2006 17:52:47 +0000 (17:52 +0000)
commitd1e15bd270b971d330238d99b66ff36074873f90
tree4541d5981a44688c92d0650e1bf9486e8d0023e2
parentec968a32e9b02c230dfcbff9660c3e61900d8235
Fix free-variable finder

After a long hunt I discovered that the reason that GHC.Enum.eftIntFB
was being marked as a loop-breaker was the bizare behaviour of exprFreeVars,
which returned not only the free variables of an expression but also the
free variables of RULES attached to variables occuring in the expression!

This was clearly deliberate (the comment was CoreFVs rev 1.1 in 1999) but
I've removed it; I've left the comment with further notes in case there
turns out to be a Deep Reason.
ghc/compiler/coreSyn/CoreFVs.lhs