[GHC] #12022: unsafeShiftL and unsafeShiftR are not marked as INLINE

GHC ghc-devs at haskell.org
Fri May 6 18:06:51 UTC 2016


#12022: unsafeShiftL and unsafeShiftR are not marked as INLINE
-------------------------------------+-------------------------------------
        Reporter:  Rufflewind        |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  libraries/base    |              Version:  7.10.3
      Resolution:                    |             Keywords:  performance,
                                     |  inline, bits
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 dfeuer):

 I don't think `INLINABLE` would help this at all. I would lean toward
 either `INLINE` or `INLINE CONLIKE`. I don't have an example, but I think
 I saw GHC allocate when just `INLINE` for a copy of one of these.

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


More information about the ghc-tickets mailing list