When extracting a basic block that ends in an 'invoke' instruction, we need to
authorBill Wendling <isanbard@gmail.com>
Tue, 20 Sep 2011 19:10:24 +0000 (19:10 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 20 Sep 2011 19:10:24 +0000 (19:10 +0000)
commit2f1cd85598d260e5567804460e87f8bee0c5e1e5
tree1152f6b62c98367ce667130c80fe405f2fb73ca7
parent9e7013a506d4ee7a7ec6ae650e2c34714393c78a
When extracting a basic block that ends in an 'invoke' instruction, we need to
extract its associated landing pad block as well. However, that landing pad
block may have more than one predecessor. So split the landing pad block so that
individual landing pads have only one predecessor.

This type of transformation may produce a false positive with bugpoint.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140173 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/LoopExtractor.cpp