OSDN Git Service

MemCpyOpt: When merging memsets also merge the trivial case of two memsets with the...
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 10 Mar 2014 21:05:13 +0000 (21:05 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 10 Mar 2014 21:05:13 +0000 (21:05 +0000)
commit8da0b7358d30b8a91648bd30046137376bf85464
tree7133927f3186a024a51dfc9c747cea91f45e9d8f
parentd89b0f200c54479bd556a5677d165865668ebcbf
MemCpyOpt: When merging memsets also merge the trivial case of two memsets with the same destination.

The testcase is from PR19092, but I think the bug described there is actually a clang issue.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203489 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/MemCpyOptimizer.cpp
test/Transforms/MemCpyOpt/form-memset.ll