summaryrefslogtreecommitdiff
path: root/compiler/codeGen/StgCmmExtCode.hs
diff options
context:
space:
mode:
authorJohan Tibell <johan.tibell@gmail.com>2013-09-25 09:10:13 -0400
committerJohan Tibell <johan.tibell@gmail.com>2014-03-11 20:01:54 +0100
commit22f010e08e58ba40b0ab59ec7a7c02cce0938cce (patch)
tree7f88d9a2c6563ea9f561d9badbdca04eed1527cf /compiler/codeGen/StgCmmExtCode.hs
parent41f803105999ffe51a40d3c72d5994520496b7ea (diff)
downloadhaskell-22f010e08e58ba40b0ab59ec7a7c02cce0938cce.tar.gz
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.
Diffstat (limited to 'compiler/codeGen/StgCmmExtCode.hs')
0 files changed, 0 insertions, 0 deletions