On 06/06/2016 05:23 AM, Bin.Cheng wrote:
Hi Jeff,
What's your opinion on this (and how to extend it to a region based
interface)? I will update this patch for further review if you are
okay.
I've never pondered how to revamp DOM into a regional interface (though
I have pondered how to revamp the threading bits into a regional
interface -- without any real success).
Conceptually I think it's just a matter of setting an entry block/edge,
computing all blocks dominated by that entry block/edge and limiting the
walker to only visiting blocks in that set. So the regional aspect
would live in domwalk.[ch].
We'd probably want to avoid all the threading bits in a regional walk --
not because threading isn't useful, but sequencing the updates is a PITA
and trying to do it in the middle of some other pass would just be a mess.
jeff