[GHC] #7928: GHC fails to terminate while compiling with optimizations