[commit: ghc] master: codeGen: allocate small arrays of statically known size inline (22f010e)

git at git.haskell.org git at git.haskell.org
Tue Mar 11 20:31:02 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/22f010e08e58ba40b0ab59ec7a7c02cce0938cce/ghc

>---------------------------------------------------------------

commit 22f010e08e58ba40b0ab59ec7a7c02cce0938cce
Author: Johan Tibell <johan.tibell at gmail.com>
Date:   Wed Sep 25 09:10:13 2013 -0400

    codeGen: allocate small arrays of statically known size inline
    
    This results in a 46% runtime decrease when allocating an array of 16
    unit elements on a 64-bit machine.
    
    In order to allow newArray# to have both an inline and an out-of-line
    implementation, cgOpApp is refactored slightly. The new implementation
    of cgOpApp should make it easier to add other primops with both inline
    and out-of-line implementations in the future.


>---------------------------------------------------------------

22f010e08e58ba40b0ab59ec7a7c02cce0938cce
 compiler/codeGen/StgCmmPrim.hs |  197 ++++++++++++++++++++++++++++++++--------
 1 file changed, 159 insertions(+), 38 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 22f010e08e58ba40b0ab59ec7a7c02cce0938cce


More information about the ghc-commits mailing list