summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-12-24 21:17:12 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-12-24 21:17:12 +0000
commitea9152e551364e54da36e51a483c36ee15669a2e (patch)
treeae93952ff4dd0f241cdcfbea39a10547f17f6fba /llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
parent7f2bb4dcaebaf776e9e09e693593fd8fd80f9047 (diff)
downloadbcm5719-llvm-ea9152e551364e54da36e51a483c36ee15669a2e.tar.gz
bcm5719-llvm-ea9152e551364e54da36e51a483c36ee15669a2e.zip
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) llvm-svn: 122548
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud