[GHC] #5925: Add inline version of newArray#

GHC ghc-devs at haskell.org
Thu Mar 6 18:01:04 UTC 2014


#5925: Add inline version of newArray#
-------------------------------------+------------------------------------
        Reporter:  tibbe             |            Owner:
            Type:  feature request   |           Status:  new
        Priority:  normal            |        Milestone:  7.6.2
       Component:  Compiler          |          Version:  7.4.1
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown      |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:  4258
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------

Comment (by tibbe):

 I've done some work on this branch: [https://github.com/tibbe/ghc/tree
 /alloc-inline]. I've also attached the changes to this ticket so they
 don't get lost if I lose the branch.

 The current status is that I have something that seems to generate the
 assembly I want, but I haven't managed to write a benchmark that shows any
 speed-up, even though I've eliminated two branches and one function call,
 if I recall correctly. So the task at this point is to come up with some
 good benchmarks. There are essentially two ways to attack that problem.
 Either we can try to show a speed-up in allocation or we can try to show a
 speed-up due to the better locality (e.g. constructor wrapping an array
 can now be allocated next to the array.)

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


More information about the ghc-tickets mailing list