Refactor the handling of case-elimination
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 7 Aug 2014 06:47:28 +0000 (07:47 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 7 Aug 2014 08:55:18 +0000 (09:55 +0100)
commit8367f062785cd30d7ab6dfc52c0aa4d5a9a941fd
tree0fe0a55d3126de2a3114e690be57f5d7ecfb7094
parentab6480b8d8ea45ae6958558245266153df071aa5
Refactor the handling of case-elimination

Mainly in Simplify.rebuildCase.  The old code wasn't wrong, but I kept
mis-understanding it.  This patch cuts splits out "pure seq" from "strict
let", which makes it much easier to grok.
compiler/simplCore/Simplify.lhs