fix PR8753, eliminating a case where we'd infinitely make a
authorChris Lattner <sabre@nondot.org>
Thu, 9 Dec 2010 07:39:50 +0000 (07:39 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 9 Dec 2010 07:39:50 +0000 (07:39 +0000)
commitf7f35467a9aac818bd5813c17e80d7efb66dadd7
treee6ead159a5d25ccc945d60105a188eaef601c6b1
parentd8c0536651af94513b60061f0ea51b948e856374
fix PR8753, eliminating a case where we'd infinitely make a
substitution because it doesn't actually change the IR.  Patch by
Jakub Staszak!

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