[GHC] #15493: Elide empty dictionaries

GHC ghc-devs at haskell.org
Fri Aug 17 10:59:58 UTC 2018


#15493: Elide empty dictionaries
-------------------------------------+-------------------------------------
        Reporter:  mnoonan           |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:  8.6.1
       Component:  Compiler          |              Version:  8.4.3
      Resolution:                    |             Keywords:
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 simonpj):

 In Core, an empty dictionary turns into a dead variable, which is
 optimised away (with `-O` anyway).

 But it'll still take up a field in `FPack1`.  Reason: it might be bottom.

 I'd be surprised if you found any appreciable performance impact.

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


More information about the ghc-tickets mailing list