Another try at the continuation-swapping stuff
authorsimonpj@microsoft.com <unknown>
Wed, 16 Aug 2006 10:50:42 +0000 (10:50 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 16 Aug 2006 10:50:42 +0000 (10:50 +0000)
commit0e98e80cfd63c35d4f1705d9ec5a2037ef920f16
treeb738822c37320e3647a773614d24e97fdebca044
parenteba4dfc2e9cf3caae2cdb6e54558972745a121f7
Another try at the continuation-swapping stuff

I have spent altogether too long on my attempt to avoid case-of-case
in situations where it is a Bad Thing.  All the action is in the
case for mkDupableAlt that handles cases with a single alternative.

I've added rather extensive comments, and it finally seems to be working
more or less right.  If you compile (say) GHC/Real.o you'll see quite a
few case-of-cases remain (which didn't happen before), and they mostly look
pretty sensible to me.
compiler/simplCore/OccurAnal.lhs
compiler/simplCore/Simplify.lhs