Fix Transforms/LoopUnroll/2007-05-05-UnrollMiscomp.ll and PR1385.
authorChris Lattner <sabre@nondot.org>
Sat, 5 May 2007 18:49:57 +0000 (18:49 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 5 May 2007 18:49:57 +0000 (18:49 +0000)
commitcaccc996e2b77503526ab8769444dd5542960a79
treec845af40d680eeda81ae488af3fc389303dcd00b
parent823572d44d99817e3bb795f6cb9615ca2a7558b6
Fix Transforms/LoopUnroll/2007-05-05-UnrollMiscomp.ll and PR1385.

If we have a LCSSA, only modify the input value if the inval was defined
by an instruction in the loop.  If defined by something before the loop,
it is still valid.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36784 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopUnroll.cpp