A more general (and simpler!) implementation of r99671. It performs a similar
authorBill Wendling <isanbard@gmail.com>
Mon, 29 Mar 2010 23:02:46 +0000 (23:02 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 29 Mar 2010 23:02:46 +0000 (23:02 +0000)
commitbfde644e8a99ffde095f04212d6ba77aa7b3bec7
treee9528e990b980b47e58d1a24913df4cde7148df6
parentaead63c0337ed24053b8bdde8918aacdc66d8231
A more general (and simpler!) implementation of r99671. It performs a similar
transform. I.e., if a clean-up eh.selector call dominates the invoke of an
_Unwind_Resume_or_Rethrow, then we convert the eh.selector into a
catch-all. This patch, however, uses the DominatorTree information, and doesn't
go through the whole rigmarole of starting at the eh.exception call, finding the
corresponding URoR and eh.selector calls, and trying to trace through any number
of instruction types to get to them.

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