[GHC] #5834: Allow both INLINE and INLINABLE for the same function

GHC ghc-devs at haskell.org
Thu Aug 4 09:13:05 UTC 2016


#5834: Allow both INLINE and INLINABLE for the same function
-------------------------------------+-------------------------------------
        Reporter:  rl                |                Owner:
            Type:  feature request   |               Status:  closed
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.5
      Resolution:  invalid           |             Keywords:
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:                    |
-------------------------------------+-------------------------------------
Changes (by mpickering):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 I think there is some confusion here. From my understanding the
 `INLINABLE` pragma causes the unfolding to be added to the interface file
 and in addition `INLINE` makes the cost very cheap to encourage the actual
 inlining.

 If this is wrong then someone please open the ticket.

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


More information about the ghc-tickets mailing list