Fix lifting of case expressions
Fix lifting of case expressions

We have to explicity check for empty arrays in each alternative as recursive
algorithms wouldn't terminate otherwise.

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