Rewrite code that 1) filters loops and 2) calculates new loop bounds.
authorDevang Patel <dpatel@apple.com>
Thu, 4 Dec 2008 21:38:42 +0000 (21:38 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 4 Dec 2008 21:38:42 +0000 (21:38 +0000)
commit3831005eb1ef41802c970244ba08d9df7d0eee9a
treeda14826899e10246d77f27a9dc2d99253ba3abcb
parent6002e993e045a36f90df076fa3c8a2127edb66d5
Rewrite code that 1) filters loops and 2) calculates new loop bounds.
This fixes many bugs. I will add more test cases in a separate check-in.

Some day, the code that manipulates CFG and updates dom. info could use refactoring help.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60554 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopIndexSplit.cpp
test/Transforms/LoopIndexSplit/2007-09-24-UpdateIterationSpace.ll
test/Transforms/LoopIndexSplit/2007-09-25-UpdateIterationSpace-2.ll
test/Transforms/LoopIndexSplit/2008-10-10-OneIteration.ll
test/Transforms/LoopIndexSplit/OneIterLoop-2007-08-17.ll
test/Transforms/LoopIndexSplit/OneIterLoop2-2007-08-17.ll