Use a heavy hammer to fix PR12573.
authorBill Wendling <isanbard@gmail.com>
Wed, 18 Apr 2012 06:00:09 +0000 (06:00 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 18 Apr 2012 06:00:09 +0000 (06:00 +0000)
commit135604129646650ef9abcd12a38b2d8976d3493c
treed3bd46a54927463f069518ee7ade75df1b1c74e3
parenta963c81819bed30d54174cdaf5a7e58696838d5a
Use a heavy hammer to fix PR12573.

If the loop contains invoke instructions, whose unwind edge escapes the loop,
then don't try to unswitch the loop. Doing so may cause the unwind edge to be
split, which not only is non-trivial but doesn't preserve loop simplify
information.

Fixes PR12573

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