diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-01-02 19:57:05 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-01-02 19:57:05 +0000 |
commit | 80220369b040dd9769e4c4b65d2d018210c3b240 (patch) | |
tree | 86c89a65b154febbccfb8218b0b86dcda5252490 /lib/Transforms/Utils/Mem2Reg.cpp | |
parent | 8c06aa1c597bb5c2c264a190bc35836f0a7b4cd5 (diff) |
Try to reuse the value when lowering memset.
This allows us to compile:
void test(char *s, int a) {
__builtin_memset(s, a, 15);
}
into 1 mul + 3 stores instead of 3 muls + 3 stores.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122710 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/Mem2Reg.cpp')
0 files changed, 0 insertions, 0 deletions