Don't optimize the landing pad exit block.
authorBill Wendling <isanbard@gmail.com>
Wed, 17 Aug 2011 21:20:43 +0000 (21:20 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 17 Aug 2011 21:20:43 +0000 (21:20 +0000)
commit0906a7c46cfc71e7c09dd6362df4310e72fdbc6b
treee1f378800ccedbad241689115e5ebd4a4b2b7038
parent490606e613566d1c7d49d2544c76c207a2555915
Don't optimize the landing pad exit block.

One way to exit the loop is through an unwind edge. However, that may involve
splitting the critical edge of the landing pad, which is non-trivial. Prevent
the transformation from rewriting the landing pad exit loop block.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137871 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/LoopSimplify.cpp