diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-12-24 21:17:12 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-12-24 21:17:12 +0000 |
commit | a112087e4298ca8ec1bc8aef8a2b272e49faa7ac (patch) | |
tree | a73adc09f5bde9f7041ab07031e39ed7806415f8 /lib/MC/WinCOFFObjectWriter.cpp | |
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
Diffstat (limited to 'lib/MC/WinCOFFObjectWriter.cpp')
0 files changed, 0 insertions, 0 deletions