Pull the creation of the "RewindFunction" function out of the loop. It's only
commit3380dd66fb6f3cedf9fe83f56c8680802bfaf4cb
authorBill Wendling <isanbard@gmail.com>
Mon, 14 Sep 2009 20:52:37 +0000 (14 20:52 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 14 Sep 2009 20:52:37 +0000 (14 20:52 +0000)
tree25e48c121bb3706570e2b3615a7fc44fc619ab33
parent35d089b52ad103aedfe249070244d6bdf0ed7039
Pull the creation of the "RewindFunction" function out of the loop. It's only
created once, so shouldn't be stuck in the middle of the loop. Also early exit
if there are no uses of UnwindInst in the function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81785 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/DwarfEHPrepare.cpp