[GHC] #9434: GHC.List.reverse does not fuse

GHC ghc-devs at haskell.org
Tue Aug 12 19:28:45 UTC 2014


#9434: GHC.List.reverse does not fuse
-------------------------------------+-------------------------------------
              Reporter:  dfeuer      |            Owner:
                  Type:  bug         |           Status:  new
              Priority:  normal      |        Milestone:
             Component:              |          Version:  7.9
  libraries/base                     |         Keywords:
            Resolution:              |     Architecture:  Unknown/Multiple
      Operating System:              |       Difficulty:  Easy (less than 1
  Unknown/Multiple                   |  hour)
       Type of failure:  Runtime     |       Blocked By:
  performance bug                    |  Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by dfeuer):

 Oh yes, of course. We want to wrap it in `build` to make it fuse with
 `map`. `reverse` inherently has lousy fusion behavior, but I think we
 should still do what we can. I think even improving the simple cases of
 `map f . reverse` and `reverse . map f` is sufficient to justify this
 change.

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


More information about the ghc-tickets mailing list