Do not erase induction variable increment if it is used outside the loop.
authorDevang Patel <dpatel@apple.com>
Mon, 19 May 2008 22:23:55 +0000 (22:23 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 19 May 2008 22:23:55 +0000 (22:23 +0000)
commit52abbf5d8a0a894e90175c3b2d2fb9d92c91fe80
tree966288da3883e40c2c1e3abe067279877a176c92
parent45b4e48b18328e5e66004d5a007595ed00cddaae
Do not erase induction variable increment if it is used outside the loop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51280 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopIndexSplit.cpp
test/Transforms/LoopIndexSplit/2008-05-19-IndVar.ll [new file with mode: 0644]