[GHC] #8326: Place heap checks common in case alternatives before the case

GHC ghc-devs at haskell.org
Tue Feb 6 08:49:16 UTC 2018


#8326: Place heap checks common in case alternatives before the case
-------------------------------------+-------------------------------------
        Reporter:  jstolarek         |                Owner:  (none)
            Type:  task              |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.7
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Runtime           |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:  8317
 Related Tickets:  #1498             |  Differential Rev(s):  Phab:D343
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 What Michael says in comment:42 seems to be exactly what item (3) in the
 Description is all about.  If the hot path does not allocate, then adding
 an allocation check into the hot path will cost time, eve if it reduces
 binary size.

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


More information about the ghc-tickets mailing list