Loop Index Split can eliminate a loop if it can determin if loop body is executed...
authorDevang Patel <dpatel@apple.com>
Mon, 30 Mar 2009 22:24:10 +0000 (22:24 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 30 Mar 2009 22:24:10 +0000 (22:24 +0000)
commitb23c232fc8a0777145480cf3ccc58f5b61e0c277
treeeef4fa8a52f3578dfed13a41f8efbe974673470c
parent2048cdb08ef6ad04bd1baf52886605d455236eb7
Loop Index Split can eliminate a loop if it can determin if loop body is executed only once. There was a bug in determining IV based value of the iteration for which the loop body is executed. Fix it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68071 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopIndexSplit.cpp
test/Transforms/LoopIndexSplit/2009-03-30-undef.ll [new file with mode: 0644]