OSDN Git Service

A memcpy out of an fresh alloca is a no-op, delete it. Patch by Patrick Walton!
authorNick Lewycky <nicholas@mxc.ca>
Thu, 6 Feb 2014 06:29:19 +0000 (06:29 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 6 Feb 2014 06:29:19 +0000 (06:29 +0000)
commit44e40408eebdd38831501fc2fab59d550e951808
treeac922edd0cba6bb8000e4635f02bc2adf2fc569e
parenta4f328f68b83dd5fc8387523f0df956816c53384
A memcpy out of an fresh alloca is a no-op, delete it. Patch by Patrick Walton!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200907 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/MemCpyOptimizer.cpp
test/Transforms/MemCpyOpt/memcpy-undef.ll [new file with mode: 0644]