commit | a112087e4298ca8ec1bc8aef8a2b272e49faa7ac | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Fri Dec 24 21:17:12 2010 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Fri Dec 24 21:17:12 2010 +0000 |
tree | a73adc09f5bde9f7041ab07031e39ed7806415f8 | |
parent | 4010dd72b81b760daaa0361084de6dca8ed86fa1 [diff] |
MemCpyOpt: Turn memcpys from a constant into a memset if possible. This allows us to compile "int cst[] = {-1, -1, -1};" into movl $-1, 16(%rsp) movq $-1, 8(%rsp) instead of movl _cst+8(%rip), %eax movl %eax, 16(%rsp) movq _cst(%rip), %rax movq %rax, 8(%rsp) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122548 91177308-0d34-0410-b5e6-96231b3b80d8