Omit extracting a loop if one of the exits is a landing pad.
authorBill Wendling <isanbard@gmail.com>
Tue, 20 Sep 2011 22:23:09 +0000 (22:23 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 20 Sep 2011 22:23:09 +0000 (22:23 +0000)
commit84b6706d9003f6078a81ed7d84f4e49ee70f7ef8
treecf6a4a6c2ae0c9de1576c79961d36f4003936933
parentaabc6a9b79b179e7a69dd78900dcd05215977112
Omit extracting a loop if one of the exits is a landing pad.

The landing pad must accompany the invoke when it's extracted. However, if it
does, then the loop isn't properly extracted. I.e., the resulting extraction has
a loop in it. The extracted function is then extracted, etc. resulting in an
infinite loop.

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