fix a miscompilation of tramp3d-v4: when forming a memcpy, we have to make
authorChris Lattner <sabre@nondot.org>
Sun, 2 Jan 2011 21:14:18 +0000 (21:14 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 2 Jan 2011 21:14:18 +0000 (21:14 +0000)
commit63f9c3c49ac7011e6366fbec42716f3f70f1beee
treecd087437583b8ca9934f3b236dd8fbbb60c7601c
parent8e08e73f0e12c9e669f2d7d0a5c9213df3046c01
fix a miscompilation of tramp3d-v4: when forming a memcpy, we have to make
sure that the loop we're promoting into a memcpy doesn't mutate the input
of the memcpy.  Before we were just checking that the dest of the memcpy
wasn't mod/ref'd by the loop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122712 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
test/Transforms/LoopIdiom/basic.ll