#2353: GHC inliner doesn't
----------------------+-----------------------------------------------------
 Reporter:  guest     |          Owner:         
     Type:  bug       |         Status:  new    
 Priority:  normal    |      Milestone:         
Component:  Compiler  |        Version:  6.9    
 Severity:  normal    |     Resolution:         
 Keywords:            |     Difficulty:  Unknown
 Testcase:            |   Architecture:  Unknown
       Os:  Unknown   |  
----------------------+-----------------------------------------------------
Comment (by guest):

 Add the rule below to the example above.  With the code as given above the
 rule doesn't fire since foo isn't inlined.  With just bar exported the
 rule does fire, because foo is inlined.

 {{{
 -- XXX Add -fno-method-sharing to the command line.  It's a static flag.
 :(
 {-# RULES "to/from" forall x . to (from x) = x #-}
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2353#comment:3>
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