[GHC] #11676: Preserve name of original function in worker name

GHC ghc-devs at haskell.org
Sat Mar 12 15:45:20 UTC 2016


#11676: Preserve name of original function in worker name
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:
            Type:  feature request   |               Status:  patch
        Priority:  low               |            Milestone:
       Component:  Compiler          |              Version:  7.10.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Other             |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D1970
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"4d791b4f77975422df38f6b43084008edd097f1b/ghc"
 4d791b4f/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="4d791b4f77975422df38f6b43084008edd097f1b"
 Simplify: Make generated names more useful

 makeTrivial is responsible for concocting names during simplification.
 Previously, however, it would make no attempt to generate a name that
 might be useful to later readers of the resulting Core. Here we add a
 bit of state to SimplEnv: a finite depth stack of binders within which
 we are currently simplifying. We then derive generated binders from this
 context.

 See #11676.

 Open questions:
   * Is there a better way to accomplish this?
   * Is `maxContextDepth` too large/small?

 Test Plan: Validate, look at Core.

 Reviewers: austin, simonpj

 Reviewed By: simonpj

 Subscribers: thomie, simonpj

 Differential Revision: https://phabricator.haskell.org/D1970

 GHC Trac Issues: #11676
 }}}

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


More information about the ghc-tickets mailing list