[GHC] #14223: Casts get in the way of join points

GHC ghc-devs at haskell.org
Tue Sep 12 22:04:58 UTC 2017


#14223: Casts get in the way of join points
-------------------------------------+-------------------------------------
        Reporter:  nomeata           |                Owner:  (none)
            Type:  task              |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.1
      Resolution:                    |             Keywords:  JoinPoints
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by nomeata):

 >  IF you float the letrec `go` inside the cast you'd get

 With the stand-alone example
 {{{
 module T14223 where
 foo :: [Bool] -> Bool
 foo xs = and xs
 }}}
 the `go` becomes top-level, so maybe that’s why?

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14223#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list