Ensure that loop breakers are computed when glomming
Ensure that loop breakers are computed when glomming

This patch fixes Trac #9583, a loop in the simplifier.

I thought this was going to be very complicated but it turned out to
be very simple!  The occurrence analyser does something called
"glomming" if the application of imported RULES means that something
that didn't look recursive becomes recursive.  See `Note [Glomming]`
in `OccurAnal`.  Under these circumstances we group all the top-level
bindings into a single massive `Rec`.

But, crucially, I failed to repeat the occurrence analysis on this
glommed set of bindings.  That means that we weren't establishing the
right loop breakers (indeed there were no loop breakers whatsoever),
and that led immediately to the loop. The only surprising this is that
it didn't happen before.

siddhanathan/ghc,forked-upstream-packages-for-ghcjs/ghc,wxwxwwxxx/ghc,christiaanb/ghc,AlexanderPankiv/ghc,AlexanderPankiv/ghc,ezyang/ghc,TomMD/ghc,anton-dessiatov/ghc,gcampax/ghc,ml9951/ghc,urbanslug/ghc,AlexanderPankiv/ghc,snoyberg/ghc,nushio3/ghc,gridaphobe/ghc,fmthoma/ghc,ghc-android/ghc,tjakway/ghcjvm,acowley/ghc,elieux/ghc,forked-upstream-packages-for-ghcjs/ghc,oldmanmike/ghc,mcschroeder/ghc,tjakway/ghcjvm,sdiehl/ghc,elieux/ghc,christiaanb/ghc,nkaretnikov/ghc,ghc-android/ghc,tjakway/ghcjvm,wxwxwwxxx/ghc,green-haskell/ghc,vTurbine/ghc,da-x/ghc,GaloisInc/halvm-ghc,shlevy/ghc,nathyong/microghc-ghc,nathyong/microghc-ghc,jstolarek/ghc,acowley/ghc,mcschroeder/ghc,da-x/ghc,gcampax/ghc,wxwxwwxxx/ghc,wxwxwwxxx/ghc,ml9951/ghc,gcampax/ghc,olsner/ghc,oldmanmike/ghc,green-haskell/ghc,gridaphobe/ghc,ml9951/ghc,mcschroeder/ghc,gridaphobe/ghc,ezyang/ghc,AlexanderPankiv/ghc,vTurbine/ghc,gridaphobe/ghc,urbanslug/ghc,GaloisInc/halvm-ghc,nkaretnikov/ghc,TomMD/ghc,mcschroeder/ghc,forked-upstream-packages-for-ghcjs/ghc,acowley/ghc,oldmanmike/ghc,olsner/ghc,oldmanmike/ghc,oldmanmike/ghc,mettekou/ghc,fmthoma/ghc,sgillespie/ghc,bitemyapp/ghc,bitemyapp/ghc,nkaretnikov/ghc,snoyberg/ghc,christiaanb/ghc,ml9951/ghc,snoyberg/ghc,acowley/ghc,jstolarek/ghc,gcampax/ghc,GaloisInc/halvm-ghc,jstolarek/ghc,siddhanathan/ghc,shlevy/ghc,mettekou/ghc,sgillespie/ghc,mettekou/ghc,ghc-android/ghc,elieux/ghc,da-x/ghc,ghc-android/ghc,sgillespie/ghc,nathyong/microghc-ghc,AlexanderPankiv/ghc,GaloisInc/halvm-ghc,gcampax/ghc,siddhanathan/ghc,vikraman/ghc,gridaphobe/ghc,green-haskell/ghc,GaloisInc/halvm-ghc,wxwxwwxxx/ghc,christiaanb/ghc,anton-dessiatov/ghc,GaloisInc/halvm-ghc,ezyang/ghc,sdiehl/ghc,vikraman/ghc,christiaanb/ghc,mfine/ghc,christiaanb/ghc,wxwxwwxxx/ghc,vTurbine/ghc,forked-upstream-packages-for-ghcjs/ghc,oldmanmike/ghc,anton-dessiatov/ghc,shlevy/ghc,tjakway/ghcjvm,elieux/ghc,sdiehl/ghc,fmthoma/ghc,bitemyapp/ghc,sdiehl/ghc,vikraman/ghc,acowley/ghc,shlevy/ghc,christiaanb/ghc,TomMD/ghc,forked-upstream-packages-for-ghcjs/ghc,TomMD/ghc,mettekou/ghc,mfine/ghc,bitemyapp/ghc,anton-dessiatov/ghc,ezyang/ghc,mettekou/ghc,sgillespie/ghc,vTurbine/ghc,sgillespie/ghc,ml9951/ghc,nathyong/microghc-ghc,vTurbine/ghc,oldmanmike/ghc,sdiehl/ghc,olsner/ghc,mettekou/ghc,sgillespie/ghc,urbanslug/ghc,ezyang/ghc,mettekou/ghc,green-haskell/ghc,mcschroeder/ghc,nathyong/microghc-ghc,da-x/ghc,snoyberg/ghc,ml9951/ghc,urbanslug/ghc,vTurbine/ghc,wxwxwwxxx/ghc,mfine/ghc,fmthoma/ghc,anton-dessiatov/ghc,fmthoma/ghc,snoyberg/ghc,acowley/ghc,siddhanathan/ghc,gcampax/ghc,shlevy/ghc,siddhanathan/ghc,gcampax/ghc,anton-dessiatov/ghc,tjakway/ghcjvm,green-haskell/ghc,GaloisInc/halvm-ghc,acowley/ghc,nkaretnikov/ghc,nushio3/ghc,mcschroeder/ghc,gridaphobe/ghc,sdiehl/ghc,fmthoma/ghc,elieux/ghc,nushio3/ghc,da-x/ghc,vikraman/ghc,nathyong/microghc-ghc,nkaretnikov/ghc,elieux/ghc,urbanslug/ghc,jstolarek/ghc,gridaphobe/ghc,sdiehl/ghc,snoyberg/ghc,TomMD/ghc,TomMD/ghc,olsner/ghc,nathyong/microghc-ghc,anton-dessiatov/ghc,tjakway/ghcjvm,forked-upstream-packages-for-ghcjs/ghc,mfine/ghc,vikraman/ghc,ghc-android/ghc,ml9951/ghc,mfine/ghc,shlevy/ghc,vikraman/ghc,bitemyapp/ghc,urbanslug/ghc,olsner/ghc,olsner/ghc,snoyberg/ghc,mcschroeder/ghc,urbanslug/ghc,mfine/ghc,forked-upstream-packages-for-ghcjs/ghc,ml9951/ghc,ezyang/ghc,TomMD/ghc,da-x/ghc,nushio3/ghc,nushio3/ghc,jstolarek/ghc,nushio3/ghc,vTurbine/ghc,shlevy/ghc,siddhanathan/ghc,mfine/ghc,sgillespie/ghc,ghc-android/ghc,olsner/ghc,nkaretnikov/ghc,elieux/ghc,nkaretnikov/ghc,AlexanderPankiv/ghc,AlexanderPankiv/ghc,vikraman/ghc,siddhanathan/ghc,ezyang/ghc,nushio3/ghc,tjakway/ghcjvm,da-x/ghc,ghc-android/ghc,fmthoma/ghc