[GHC] #15445: SPECIALIZE one of two identical functions does not fire well

GHC ghc-devs at haskell.org
Tue Jul 31 12:19:52 UTC 2018


#15445: SPECIALIZE one of two identical functions does not fire well
---------------------------------+--------------------------------------
        Reporter:  nobrakal      |                Owner:  (none)
            Type:  bug           |               Status:  new
        Priority:  normal        |            Milestone:  8.6.1
       Component:  Compiler      |              Version:  8.4.3
      Resolution:                |             Keywords:
Operating System:  Linux         |         Architecture:  x86_64 (amd64)
 Type of failure:  None/Unknown  |            Test Case:
      Blocked By:                |             Blocking:
 Related Tickets:                |  Differential Rev(s):
       Wiki Page:                |
---------------------------------+--------------------------------------

Comment (by Simon Peyton Jones <simonpj@…>):

 In [changeset:"2110738b280543698407924a16ac92b6d804dc36/ghc"
 2110738b/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="2110738b280543698407924a16ac92b6d804dc36"
 Don't inline functions with RULES too early

 Trac #15445 showed that a function with an automatically
 generated specialisation RULE coudl be inlined before the
 RULE had a chance to fire.

 This patch attaches a NOINLINE[2] activation to the Id, to
 stop this happening.
 }}}

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


More information about the ghc-tickets mailing list