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 | 25e6e06e423a14626bf7d650367a07c3c21e08a8 (patch) | |
tree | 031c07eeca5ead0b3ed7b51e985e30ca5aae7c65 /llvm/lib/Transforms | |
parent | 7293698ed3596d10e60c1394f2ab78171fa975d6 (diff) | |
download | bcm5719-llvm-25e6e06e423a14626bf7d650367a07c3c21e08a8.tar.gz bcm5719-llvm-25e6e06e423a14626bf7d650367a07c3c21e08a8.zip |
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.
llvm-svn: 122710
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions