[GHC] #9536: Implement foldr/cons/build

GHC ghc-devs at haskell.org
Wed Oct 1 16:21:18 UTC 2014


#9536: Implement foldr/cons/build
-------------------------------------+-------------------------------------
              Reporter:  dfeuer      |            Owner:
                  Type:  task        |           Status:  patch
              Priority:  normal      |        Milestone:  7.8.4
             Component:              |          Version:  7.9
  libraries/base                     |         Keywords:  fusion
            Resolution:              |     Architecture:  Unknown/Multiple
      Operating System:              |       Difficulty:  Easy (less than 1
  Unknown/Multiple                   |  hour)
       Type of failure:              |       Blocked By:
  None/Unknown                       |  Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by Joachim Breitner <mail@…>):

 In [changeset:"789321098f86fd3c4483b24372f8938f89b12312/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="789321098f86fd3c4483b24372f8938f89b12312"
 Fusion rule for "foldr k z (x:build g)"

 There seem to be various issues with general fold/cons and even
 cons/build rules, but it seems pretty clear to me that the simple
 fold/cons/build rule is a good idea. It doesn't do much for nofib
 allocation, but it seems to improve some other analyses and speed
 several benchmarks up. Implements #9536.
 }}}

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


More information about the ghc-tickets mailing list