Implement a TODO: Enhance loopinfo to merge away the unconditional branch
authorChris Lattner <sabre@nondot.org>
Sat, 8 Jan 2011 19:10:28 +0000 (19:10 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 8 Jan 2011 19:10:28 +0000 (19:10 +0000)
commit883401a72f03286cb51d08bf1c894c7d7eb58a31
tree76c52db2c051478a006ae4ba607d54f3f4f9a1b0
parentdc85f8ab808aec2f673262f5145eda58538cfb26
Implement a TODO: Enhance loopinfo to merge away the unconditional branch
that it was leaving in loops after rotation (between the original latch
block and the original header.

With this change, it is possible for rotated loops to have just a single
basic block, which is useful.

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