Inline into tail-called constructor args
authorsimonpj@microsoft.com <unknown>
Mon, 14 Aug 2006 16:51:27 +0000 (16:51 +0000)
committersimonpj@microsoft.com <unknown>
Mon, 14 Aug 2006 16:51:27 +0000 (16:51 +0000)
commit098d99aa2967cd35bdfe2a8c48ea8eee8ffd4f11
tree81eaeaa12ebe7fe635b1192af997629339c9a906
parent25ce05f745a40a57ff64f8ee3d59a31ba61400fc
Inline into tail-called constructor args

Consider
x = case y of { True -> (p,q); ... }

The occurrence analyser was marking p,q as 'Many', because they args
of a constructor in an RhsCtxt.  But actually they aren't in a RhsCtxt,
and in this case it's better to inline.
compiler/simplCore/OccurAnal.lhs