Don't always create a separate block for the call to _Unwind_Resume.
authorBill Wendling <isanbard@gmail.com>
Sat, 28 Jan 2012 00:47:18 +0000 (00:47 +0000)
committerBill Wendling <isanbard@gmail.com>
Sat, 28 Jan 2012 00:47:18 +0000 (00:47 +0000)
commitb0064c6d8b50b43f56aabaebfd0e0ac274501a59
tree346ad20b0237bba2850290287db9cbf8c8b1d024
parent1d5013992f8ecf5cc670ab8a1a599db4722c2f5d
Don't always create a separate block for the call to _Unwind_Resume.

Sometimes there is only one 'resume' instruction per function. In those
situations, we don't need a separate block for the call to _Unwind_Resume. In
fact, it adds a lot of overhead to code-gen if we do that -- especially at -O0.
If we have a single 'resume' instruction, just generate the call within that
block.
<rdar://problem/10694814>

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