Make SpecConstr work better for nested functions
authorsimonpj@microsoft.com <unknown>
Tue, 27 Jun 2006 09:47:42 +0000 (09:47 +0000)
committersimonpj@microsoft.com <unknown>
Tue, 27 Jun 2006 09:47:42 +0000 (09:47 +0000)
commit68e468f00761339cb268e3f8e8e3124d1aaccadc
tree1de82d8ea96cdb6931d0b34c75233dce3b5735af
parentb5f43414d0329b56abaaeb5e9e4708000e93670c
Make SpecConstr work better for nested functions

In SpecConstr.scBind, we should pass the optimised body (body') to
specialise, not the un-optimised one. In this way we'll benefit from
specialising any nested functions inside body.

Discovered by Roman.
compiler/specialise/SpecConstr.lhs