[commit: ghc] master: codeGen: allocate small byte arrays of statically known size inline (210ccab)

git at git.haskell.org git at git.haskell.org
Thu Mar 13 23:02:05 UTC 2014


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/210ccabc9489bfbf814939e8b45646c8d0c7ce5f/ghc

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

commit 210ccabc9489bfbf814939e8b45646c8d0c7ce5f
Author: Johan Tibell <johan.tibell at gmail.com>
Date:   Wed Mar 12 07:20:19 2014 +0100

    codeGen: allocate small byte arrays of statically known size inline
    
    This results in a 57% runtime decrease when allocating an array of 128
    bytes on a 64-bit machine.
    
    Fixes #8876.


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

210ccabc9489bfbf814939e8b45646c8d0c7ce5f
 compiler/cmm/CLabel.hs                             |    5 +-
 compiler/cmm/SMRep.lhs                             |   24 ++++++++-
 compiler/codeGen/StgCmmPrim.hs                     |   49 ++++++++++++++----
 .../codeGen/should_run/StaticByteArraySize.hs      |   52 ++++++++++++++++++++
 ...ArraySize.stdout => StaticByteArraySize.stdout} |    0
 testsuite/tests/codeGen/should_run/all.T           |    1 +
 ...InlineArrayAlloc.hs => InlineByteArrayAlloc.hs} |    8 +--
 testsuite/tests/perf/should_run/all.T              |    7 +++
 utils/deriveConstants/DeriveConstants.hs           |    2 +-
 9 files changed, 130 insertions(+), 18 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 210ccabc9489bfbf814939e8b45646c8d0c7ce5f


More information about the ghc-commits mailing list