If the preheader of the loop was the entry block of the function, make sure
authorChris Lattner <sabre@nondot.org>
Sun, 18 Apr 2004 17:38:42 +0000 (17:38 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 18 Apr 2004 17:38:42 +0000 (17:38 +0000)
commitcc43909bb6bfe99494d82001ec7503407996e43a
tree8b900aaf508a77e78c795a4f3b0a86711695cbd3
parent998f44f859ee37a9dd6a124a24653af3c99fe291
If the preheader of the loop was the entry block of the function, make sure
that the exit block of the loop becomes the new entry block of the function.

This was causing a verifier assertion on 252.eon.

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