[project @ 2003-09-23 15:15:02 by simonpj]
authorsimonpj <unknown>
Tue, 23 Sep 2003 15:15:03 +0000 (15:15 +0000)
committersimonpj <unknown>
Tue, 23 Sep 2003 15:15:03 +0000 (15:15 +0000)
commit6c4a98d3df5a8183ac7bfb71c8eeeaf2972b50e5
treed3134cc39ddaaaa7244ca5136f3075293d7825f8
parent1aeeeaf808e13a81bc79e3e0e26cbe11ff2196bd
[project @ 2003-09-23 15:15:02 by simonpj]
--------------------------
     Move demand-zapping code to where it belongs
   --------------------------

A rather subtle point in the simplifier concerns the zapping of demand-info
when the RHS of a binding is a value.  This used to be tucked away inside
IdInfo where it was hard to find.  This commit moves the code to Simplify,
so it occurs where you'd look for it.  Along with copious comments.

See the zapDemandInfo in Simplify.completeLazyBind
ghc/compiler/basicTypes/IdInfo.lhs
ghc/compiler/simplCore/Simplify.lhs