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. Otherwise, this second patch is ok. r~