Andrew, Dominance and reachability are two different but related things. It's trivial to come up with a simple example to show this.
Gary ________________________________ From: Andrew Pinski <[email protected]> Sent: Friday, October 9, 2020 8:13 PM To: Jojo R <[email protected]> Cc: GCC Development <[email protected]> Subject: Re: How to check reachable between blocks On Fri, Oct 9, 2020 at 8:01 PM Jojo R <[email protected]> wrote: > > Hi, > > Is there any API or common codes to check any two blocks is reachable > ? Yes the API in dominance.h. Depending on where you use it, you might need to have it created. Using calculate_dominance_info function. The function to do the check is dominated_by_p. Thanks, Andrew Pinski > > Thanks. > > Jojo
