Fast fix for PR12343:
authorStepan Dyatkovskiy <stpworld@narod.ru>
Mon, 2 Apr 2012 17:16:45 +0000 (17:16 +0000)
committerStepan Dyatkovskiy <stpworld@narod.ru>
Mon, 2 Apr 2012 17:16:45 +0000 (17:16 +0000)
commitaad9c3f17a73b3104f4a3673a2dc511a4878e20e
tree6c13b569bf511dd07b3943a063ea0488b11e49d8
parent466958c2a04a74de99efd3d7e0d5bd81cdf1e1fe
Fast fix for PR12343:
http://llvm.org/bugs/show_bug.cgi?id=12343

We have not trivial way for splitting edges that are goes from indirect branch. We can do it with some tricks, but it should be additionally discussed. And it is still dangerous due to difficulty of indirect branches controlling.

Fix forbids this case for unswitching.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153879 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopUnswitch.cpp
test/Transforms/LoopUnswitch/2012-04-02-IndirectBr.ll [new file with mode: 0644]