When looking for dependencies on the src pointer, scan the src pointer. Scanning
authorNick Lewycky <nicholas@mxc.ca>
Sun, 16 Oct 2011 20:13:32 +0000 (20:13 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 16 Oct 2011 20:13:32 +0000 (20:13 +0000)
commit36c7e6c36cce7896b762e79a75b9a29e6a39d48c
treee45872ddbb4da86ab74e20ce4604350e306be060
parentea6578b72acf1dfa1f21d413ff134aeaad64d809
When looking for dependencies on the src pointer, scan the src pointer. Scanning
on the memcpy call will pull up other unrelated stuff. Fixes PR11142.

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