On Wed, Jan 25, 2012 at 10:54 PM, Richard Henderson <r...@redhat.com> wrote: > On 01/26/2012 03:04 AM, Michael Matz wrote: >> Actually, resx/eh_dispatch always are the last BB statements, so the loop >> doesn't need to look at all statements in a BB, making it quite somewhat >> faster. Consider the tree-eh.c to be looking like so: > > For the record, is this without optimization or something? > > A region without a landing pad is unreachable. Thus I'd normally > expect the region's blocks, including the offending RESX referencing > the region, to be deleted as dead code.
Even without optimization I hope. > Otherwise, this second patch is ok. > > > r~