[commit: ghc] master: Add flags to control memcpy and memset inlining (11b31c3)

git at git.haskell.org git at git.haskell.org
Wed Mar 26 17:59:56 UTC 2014


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/11b31c3c9bbe05486e6532ec6217c8cf2587adbb/ghc

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

commit 11b31c3c9bbe05486e6532ec6217c8cf2587adbb
Author: Johan Tibell <johan.tibell at gmail.com>
Date:   Wed Mar 26 17:08:29 2014 +0100

    Add flags to control memcpy and memset inlining
    
    This adds -fmax-inline-memcpy-insns and -fmax-inline-memset-insns.
    These flags control when we inline calls to memcpy/memset with
    statically known arguments. The flag naming style is taken from GCC
    and the same limit is used by both GCC and LLVM.


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

11b31c3c9bbe05486e6532ec6217c8cf2587adbb
 compiler/main/DynFlags.hs                          |   20 +++++--
 compiler/nativeGen/X86/CodeGen.hs                  |   56 +++++++++++---------
 docs/users_guide/flags.xml                         |   24 +++++++++
 testsuite/.gitignore                               |    1 +
 testsuite/tests/codeGen/should_gen_asm/all.T       |    2 +
 .../tests/codeGen/should_gen_asm/memset-unroll.asm |   14 +++++
 .../tests/codeGen/should_gen_asm/memset-unroll.cmm |    8 +++
 7 files changed, 95 insertions(+), 30 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 11b31c3c9bbe05486e6532ec6217c8cf2587adbb


More information about the ghc-commits mailing list