Only specialise on dictionaries that have some interesting structure
authorsimonpj@microsoft.com <unknown>
Wed, 27 Aug 2008 15:25:40 +0000 (15:25 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 27 Aug 2008 15:25:40 +0000 (15:25 +0000)
commit519e79eac7b8c0cdabccc70e0e9477d389c14c98
treec00eecf181e04c1a7fbe6cdde8c8e509de862751
parentc0f542271da944d540faf91678c48ff856174b57
Only specialise on dictionaries that have some interesting structure

I discovered by accident that we were generating utterly useless
specialisations.  See Note [Interesting dictionary arguments] in Specialise.

This patch used SimplUtils.interestingArg to restrict specialisation to
cases where the dictionary acutally has some information to give us.
compiler/specialise/Specialise.lhs