[GHC] #13999: Simple function not inlined within declaration marked NOINLINE

GHC ghc-devs at haskell.org
Thu Jul 20 23:07:54 UTC 2017


#13999: Simple function not inlined within declaration marked NOINLINE
-------------------------------------+-------------------------------------
        Reporter:  srb               |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  lowest            |            Milestone:
       Component:  Compiler          |              Version:  8.0.2
      Resolution:                    |             Keywords:  Inlining
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Runtime           |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 What's the problem here?  YOu get the same code whether or not `eq` is
 marked `NOINLINE`.  GHC generally doesn't inline a function if the caller
 cannot benefit, which it can't here.

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


More information about the ghc-tickets mailing list