[GHC] #10918: Float once-used let binding into a recursive function

GHC ghc-devs at haskell.org
Wed Oct 7 08:18:55 UTC 2015


#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


More information about the ghc-tickets mailing list