[GHC] #8901: (very) bad inline heuristics

GHC ghc-devs at haskell.org
Fri Mar 21 15:50:20 UTC 2014


#8901: (very) bad inline heuristics
-------------------------------------+------------------------------------
        Reporter:  heisenbug         |            Owner:
            Type:  bug               |           Status:  new
        Priority:  normal            |        Milestone:
       Component:  Compiler          |          Version:  7.7
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown      |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------

Comment (by simonpj):

 Not necessarily. It's not hard to give GHC a heart attack by inlining too
 aggressively.

 If you can exhibit a case where you think GHC is inlining where it
 shouldn't I'll gladly look at it. For example you mention `formatTime`;
 can you give a test case?  Eg a test file with 10+ calls, that all inline
 when they shouldn't?

 Simon

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


More information about the ghc-tickets mailing list