Fix Trac #4345: simplifier bug
Fix Trac #4345: simplifier bug

This is another long-standing bug, in which there was a possibility
that a loop-breaker could lose its loop-breaker-hood OccInfo, 
and then the simplifer re-simplified the expression. Result, either
non-termination or, in the case of #4345, an unbound identifier.

The fix is very simple, in Id.transferPolyIdInfo. 
See Note [transferPolyIdInfo].

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