Re-engineer the derived Ord instance generation code (fix Trac #4019)
authorsimonpj@microsoft.com <unknown>
Mon, 10 May 2010 13:33:33 +0000 (13:33 +0000)
committersimonpj@microsoft.com <unknown>
Mon, 10 May 2010 13:33:33 +0000 (13:33 +0000)
commitf3c7ab8dbd5a46ef5a7aeeb398a6d4bc1482e606
treef4d07080bd764640f9f2a2d82597790d03f5c469
parent9adc50f67cad200f5848ede1849b1e4b9158f915
Re-engineer the derived Ord instance generation code (fix Trac #4019)

As well as fixing #4019, I rejigged the way that Ord instances are
generated, which should make them faster in general.  See the
Note [Generating Ord instances].

I tried to measure the performance difference from this change, but
the #4019 fix only removes one conditional branch per iteration, and
I couldn't measure a consistent improvement.  But still, tihs is
better than before.
compiler/typecheck/TcGenDeriv.lhs