Add a work-around for #7978.
Add a work-around for #7978.

This patch fixes profiling at the cost of losing cost centre accounting in a
very small number of cases. I am working on a better fix.

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