Improve mkDupableCont; and fix Trac #3116
authorsimonpj@microsoft.com <unknown>
Wed, 25 Mar 2009 09:52:05 +0000 (09:52 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 25 Mar 2009 09:52:05 +0000 (09:52 +0000)
commit63f6b0868f4948232f87bc4df52c9d3a2ec8f184
treec505afc8c0d4befeb1d01fdaf63d70217c4e7a95
parent3733f4b27c7a2c5eb58b020319abbbf9146707c0
Improve mkDupableCont; and fix Trac #3116

It turns out that, as a result of a change I made a few months ago to
the representation of SimplCont, it's easy to solve the optimisation
challenge posed by Trac #3116.  Hurrah.

Extensive comments in Note [Duplicating StrictArg].
compiler/simplCore/SimplUtils.lhs
compiler/simplCore/Simplify.lhs