
#10918: Float once-used let binding into a recursive function -------------------------------------+------------------------------------- Reporter: nomeata | Owner: Type: task | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): -------------------------------------+------------------------------------- Comment (by simonpj): Good point. The only obvious thing is to do arity/strictness analysis after the last use of float-out. And in fact with `-flate-dmd-anal` we do a late strictness analysis pass, which is not followed by float-out. I suppose you might need to add a last arity-analysis pass to that? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10918#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler