[project @ 2004-09-15 11:45:24 by simonmar] Add a couple of cases to mk_switch to catch the case when we have a tag range that has a lot of default cases at either end, and we're not using a single switch.  In situations like this we want to eliminate the default cases with an if-statement, before dealing with the rest of the branches, which might then be suitable for a switch.
[project @ 2004-09-15 11:45:24 by simonmar]
Add a couple of cases to mk_switch to catch the case when we have a
tag range that has a lot of default cases at either end, and we're not
using a single switch.  In situations like this we want to eliminate
the default cases with an if-statement, before dealing with the rest
of the branches, which might then be suitable for a switch.

Also, ignore empty tag slots at either end of the range if there is no
default case.

This might work around a gcc 2.95 bug that we tickled with the
code being generated before.

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