[project @ 2001-10-18 13:09:50 by simonpj]
authorsimonpj <unknown>
Thu, 18 Oct 2001 13:09:50 +0000 (13:09 +0000)
committersimonpj <unknown>
Thu, 18 Oct 2001 13:09:50 +0000 (13:09 +0000)
commit94b17da417ef3e3df9411397481bbca3bfaf5fa8
treef722bf97cab68c35c506518869245fe6ffd4a0ad
parentadab0038fca8cda41d42eead77b206d0c407e803
[project @ 2001-10-18 13:09:50 by simonpj]
Fix two minor bugs in DmdAnal, and add comments.
The bugs were both in dmdTransform, the dataConId case

  * The test for saturation should be against call_depth
    not agaainst (length ds).

  * The arg_ds computation for k=Keep should be
    with 'both' not 'lub'.
ghc/compiler/basicTypes/NewDemand.lhs
ghc/compiler/stranal/DmdAnal.lhs