[GHC] #15631: Lost opportunity to eliminate seq

GHC ghc-devs at haskell.org
Wed Sep 12 14:08:37 UTC 2018


#15631: Lost opportunity to eliminate seq
-------------------------------------+-------------------------------------
        Reporter:  simonpj           |                Owner:  (none)
            Type:  bug               |               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 Simon Peyton Jones <simonpj@…>):

 In [changeset:"0e6d42fe76958648243f99c49e648769c1ea658c/ghc"
 0e6d42fe/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="0e6d42fe76958648243f99c49e648769c1ea658c"
 Be a bit more aggressive about let-to-case

 This patch takes up the missed opportunity described in
 Trac #15631, by convering a case into a let slightly
 more agressively. See Simplify.hs
 Note [Case-to-let for strictly-used binders]

 There is no measurable perf impact for good or ill. But
 the code is simpler and easier to explain.
 }}}

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


More information about the ghc-tickets mailing list