Optimise (case tagToEnum# x of ..) as in Trac #8317
Optimise (case tagToEnum# x of ..) as in Trac #8317

See Note [Optimising tagToEnum#] in Simplify

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