remove a pointless restriction from memcpyopt. It was
authorChris Lattner <sabre@nondot.org>
Thu, 18 Nov 2010 08:00:57 +0000 (08:00 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 18 Nov 2010 08:00:57 +0000 (08:00 +0000)
commit5a7aeaa01904b9b0adf256108f302f8961295754
treed61e12af604ae01207dbf31bdba33fdb64db3bef
parent7cac8e1691156f22f2f1def0e82d6374bb2b0f21
remove a pointless restriction from memcpyopt.  It was
refusing to optimize two memcpy's like this:

copy A <- B
copy C <- A

if it couldn't prove that noalias(B,C).  We can eliminate
the copy by producing a memmove instead of memcpy.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119694 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/MemCpyOptimizer.cpp
test/Transforms/MemCpyOpt/2008-04-29-SRetRemoval.ll [deleted file]
test/Transforms/MemCpyOpt/memcpy.ll