aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/MemCpyOpt/memcpy-to-memset.ll
AgeCommit message (Collapse)Author
2010-12-24MemCpyOpt: Turn memcpys from a constant into a memset if possible.Benjamin Kramer
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