Add flags to control memcpy and memset inlining
authorJohan Tibell <johan.tibell@gmail.com>
Wed, 26 Mar 2014 16:08:29 +0000 (17:08 +0100)
committerJohan Tibell <johan.tibell@gmail.com>
Wed, 26 Mar 2014 16:08:29 +0000 (17:08 +0100)
commit11b31c3c9bbe05486e6532ec6217c8cf2587adbb
treeb22cc07f0caf6c24557c339260ba4e319c3517cb
parentce335cee31de24d817246a87935bb9ffd21168f9
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.
compiler/main/DynFlags.hs
compiler/nativeGen/X86/CodeGen.hs
docs/users_guide/flags.xml
testsuite/.gitignore
testsuite/tests/codeGen/should_gen_asm/all.T
testsuite/tests/codeGen/should_gen_asm/memset-unroll.asm [new file with mode: 0644]
testsuite/tests/codeGen/should_gen_asm/memset-unroll.cmm [new file with mode: 0644]