Re: How to check reachable between blocks

2020-10-10 Thread Gary Oblock via Gcc
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 Sent: Friday, October 9, 2020 8:13 PM To: Jojo R Cc: GCC Development Subject: Re: How to

Re: How to check reachable between blocks

2020-10-09 Thread Jojo R
Hi, Thanks, i will dig it deeply :) Jojo 在 2020年10月10日 +0800 AM11:14,Andrew Pinski ,写道: > On Fri, Oct 9, 2020 at 8:01 PM Jojo R 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

Re: How to check reachable between blocks

2020-10-09 Thread Andrew Pinski via Gcc
On Fri, Oct 9, 2020 at 8:01 PM Jojo R 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