
#13080: Constant values are not floated out of the loop -------------------------------------+------------------------------------- Reporter: Feuerbach | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Runtime | Unknown/Multiple performance bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by michaelt): By the way, `forever` isn't needed, you can replace it with `(\x -> x >> x)` in Feuerbach's progam. In the SO question the user noticed that the problem is solved by defining `poll a b` without explicit recursive use of `poll a b`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13080#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler