#4945: Another SpecConstr infelicity
---------------------------------+------------------------------------------
    Reporter:  batterseapower    |       Owner:                         
        Type:  bug               |      Status:  new                    
    Priority:  normal            |   Component:  Compiler               
     Version:  7.0.1             |    Keywords:                         
    Testcase:                    |   Blockedby:                         
          Os:  Unknown/Multiple  |    Blocking:                         
Architecture:  Unknown/Multiple  |     Failure:  Runtime performance bug
---------------------------------+------------------------------------------

Comment(by batterseapower):

 I see what is going on here. Since this is a local letrec, you don't
 generate any specialisations from the RHS call patterns unless at least
 one call pattern is boring. However, since the body doesn't apply *any*
 arguments at all to the function, SpecConstr doesn't detect any calls! How
 amusing :-)

 A quick and easy hack that would probably solve it would be to replace
 SpecConstr:1486 with:

 {{{
 any isNothing mb_pats || null mb_pats
 }}}

 I can't test this right now.

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to