Even if there are not any induction variables in the loop, if we can compute
authorChris Lattner <sabre@nondot.org>
Sat, 17 Apr 2004 18:08:33 +0000 (18:08 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 17 Apr 2004 18:08:33 +0000 (18:08 +0000)
commitf50af088f19f525f3d1026eb61db77e0037a9f43
treeb0a068d29dfedd7305b4a8962fef63468bafef0d
parentf5b9eb37a92a36e80bacc21a89f538731ed63aa2
Even if there are not any induction variables in the loop, if we can compute
the trip count for the loop, insert one so that we can canonicalize the exit
condition.

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