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].
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.

ezyang/ghc,oldmanmike/ghc,shlevy/ghc,green-haskell/ghc,bitemyapp/ghc,holzensp/ghc,sdiehl/ghc,siddhanathan/ghc,lukexi/ghc-7.8-arm64,jstolarek/ghc,gcampax/ghc,jstolarek/ghc,ghc-android/ghc,bitemyapp/ghc,vTurbine/ghc,shlevy/ghc,hferreiro/replay,wxwxwwxxx/ghc,ghc-android/ghc,AlexanderPankiv/ghc,forked-upstream-packages-for-ghcjs/ghc,lukexi/ghc,sdiehl/ghc,ryantm/ghc,snoyberg/ghc,elieux/ghc,siddhanathan/ghc,tjakway/ghcjvm,sgillespie/ghc,christiaanb/ghc,vikraman/ghc,vTurbine/ghc,spacekitteh/smcghc,ilyasergey/GHC-XAppFix,ghc-android/ghc,AlexanderPankiv/ghc,nkaretnikov/ghc,ml9951/ghc,nushio3/ghc,nathyong/microghc-ghc,ilyasergey/GHC-XAppFix,frantisekfarka/ghc-dsi,tibbe/ghc,ekmett/ghc,vikraman/ghc,ml9951/ghc,wxwxwwxxx/ghc,sgillespie/ghc,snoyberg/ghc,tjakway/ghcjvm,da-x/ghc,lukexi/ghc,hferreiro/replay,mfine/ghc,oldmanmike/ghc,mettekou/ghc,snoyberg/ghc,vTurbine/ghc,snoyberg/ghc,da-x/ghc,urbanslug/ghc,TomMD/ghc,nathyong/microghc-ghc,TomMD/ghc,forked-upstream-packages-for-ghcjs/ghc,urbanslug/ghc,GaloisInc/halvm-ghc,gridaphobe/ghc,GaloisInc/halvm-ghc,forked-upstream-packages-for-ghcjs/ghc,nomeata/ghc,ezyang/ghc,urbanslug/ghc,green-haskell/ghc,vikraman/ghc,da-x/ghc,wxwxwwxxx/ghc,GaloisInc/halvm-ghc,nkaretnikov/ghc,sgillespie/ghc,ml9951/ghc,da-x/ghc,mcmaniac/ghc,forked-upstream-packages-for-ghcjs/ghc,nathyong/microghc-ghc,mfine/ghc,fmthoma/ghc,TomMD/ghc,mcmaniac/ghc,ml9951/ghc,christiaanb/ghc,fmthoma/ghc,tibbe/ghc,elieux/ghc,ryantm/ghc,green-haskell/ghc,nomeata/ghc,nomeata/ghc,shlevy/ghc,gcampax/ghc,gcampax/ghc,mcmaniac/ghc,olsner/ghc,mettekou/ghc,spacekitteh/smcghc,GaloisInc/halvm-ghc,sgillespie/ghc,ml9951/ghc,nathyong/microghc-ghc,frantisekfarka/ghc-dsi,anton-dessiatov/ghc,mfine/ghc,ilyasergey/GHC-XAppFix,sdiehl/ghc,TomMD/ghc,ekmett/ghc,shlevy/ghc,anton-dessiatov/ghc,tibbe/ghc,nushio3/ghc,gridaphobe/ghc,urbanslug/ghc,nathyong/microghc-ghc,wxwxwwxxx/ghc,olsner/ghc,olsner/ghc,lukexi/ghc,jstolarek/ghc,wxwxwwxxx/ghc,mettekou/ghc,mcschroeder/ghc,snoyberg/ghc,bitemyapp/ghc,vikraman/ghc,ekmett/ghc,snoyberg/ghc,shlevy/ghc,mettekou/ghc,gridaphobe/ghc,lukexi/ghc-7.8-arm64,ryantm/ghc,GaloisInc/halvm-ghc,gcampax/ghc,nkaretnikov/ghc,elieux/ghc,ezyang/ghc,sdiehl/ghc,tjakway/ghcjvm,ezyang/ghc,bitemyapp/ghc,mcschroeder/ghc,siddhanathan/ghc,nushio3/ghc,jstolarek/ghc,ryantm/ghc,gcampax/ghc,mcmaniac/ghc,olsner/ghc,acowley/ghc,siddhanathan/ghc,ryantm/ghc,tjakway/ghcjvm,ml9951/ghc,olsner/ghc,ml9951/ghc,oldmanmike/ghc,TomMD/ghc,acowley/ghc,ilyasergey/GHC-XAppFix,sdiehl/ghc,mfine/ghc,nushio3/ghc,forked-upstream-packages-for-ghcjs/ghc,tibbe/ghc,nathyong/microghc-ghc,oldmanmike/ghc,hferreiro/replay,wxwxwwxxx/ghc,frantisekfarka/ghc-dsi,mettekou/ghc,da-x/ghc,hferreiro/replay,lukexi/ghc-7.8-arm64,ghc-android/ghc,GaloisInc/halvm-ghc,lukexi/ghc-7.8-arm64,vikraman/ghc,mcschroeder/ghc,AlexanderPankiv/ghc,nomeata/ghc,ezyang/ghc,elieux/ghc,fmthoma/ghc,fmthoma/ghc,urbanslug/ghc,christiaanb/ghc,acowley/ghc,nkaretnikov/ghc,mcschroeder/ghc,elieux/ghc,anton-dessiatov/ghc,acowley/ghc,anton-dessiatov/ghc,gridaphobe/ghc,oldmanmike/ghc,gcampax/ghc,bitemyapp/ghc,vTurbine/ghc,ekmett/ghc,ekmett/ghc,ezyang/ghc,christiaanb/ghc,TomMD/ghc,vikraman/ghc,oldmanmike/ghc,anton-dessiatov/ghc,AlexanderPankiv/ghc,spacekitteh/smcghc,christiaanb/ghc,mettekou/ghc,da-x/ghc,elieux/ghc,ghc-android/ghc,elieux/ghc,anton-dessiatov/ghc,ghc-android/ghc,vTurbine/ghc,gridaphobe/ghc,tjakway/ghcjvm,shlevy/ghc,nushio3/ghc,vikraman/ghc,tibbe/ghc,sdiehl/ghc,siddhanathan/ghc,holzensp/ghc,ml9951/ghc,holzensp/ghc,nkaretnikov/ghc,fmthoma/ghc,sgillespie/ghc,GaloisInc/halvm-ghc,urbanslug/ghc,mfine/ghc,jstolarek/ghc,mcschroeder/ghc,holzensp/ghc,snoyberg/ghc,mettekou/ghc,sdiehl/ghc,shlevy/ghc,siddhanathan/ghc,sgillespie/ghc,hferreiro/replay,spacekitteh/smcghc,mcmaniac/ghc,spacekitteh/smcghc,lukexi/ghc-7.8-arm64,fmthoma/ghc,vTurbine/ghc,nomeata/ghc,ezyang/ghc,forked-upstream-packages-for-ghcjs/ghc,green-haskell/ghc,holzensp/ghc,green-haskell/ghc,vTurbine/ghc,nushio3/ghc,acowley/ghc,mfine/ghc,wxwxwwxxx/ghc,sgillespie/ghc,AlexanderPankiv/ghc,olsner/ghc,nkaretnikov/ghc,AlexanderPankiv/ghc,gridaphobe/ghc,nathyong/microghc-ghc,AlexanderPankiv/ghc,mcschroeder/ghc,tjakway/ghcjvm,forked-upstream-packages-for-ghcjs/ghc,olsner/ghc,tjakway/ghcjvm,lukexi/ghc,urbanslug/ghc,oldmanmike/ghc,fmthoma/ghc,TomMD/ghc,anton-dessiatov/ghc,gcampax/ghc,frantisekfarka/ghc-dsi,siddhanathan/ghc,christiaanb/ghc,gridaphobe/ghc,mfine/ghc,lukexi/ghc,ghc-android/ghc,christiaanb/ghc,acowley/ghc,nushio3/ghc,nkaretnikov/ghc,da-x/ghc,acowley/ghc,mcschroeder/ghc,hferreiro/replay,hferreiro/replay,frantisekfarka/ghc-dsi