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.

llvm-svn: 60554
6 files changed
tree: 873553e428c04c1a51960bc3d0a8ba45ac59819a
  1. clang/
  2. llvm/