public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* How to check reachable between blocks
       [not found] <e72e4772-97e3-49f8-8a7d-3d4af002be45@Spark>
@ 2020-10-10  3:00 ` Jojo R
  2020-10-10  3:13   ` Andrew Pinski
  0 siblings, 1 reply; 4+ messages in thread
From: Jojo R @ 2020-10-10  3:00 UTC (permalink / raw)
  To: GCC Development

Hi,

	Is there any API or common codes to check any two blocks is reachable ?

Thanks.

Jojo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to check reachable between blocks
  2020-10-10  3:00 ` How to check reachable between blocks Jojo R
@ 2020-10-10  3:13   ` Andrew Pinski
  2020-10-10  3:31     ` Jojo R
  2020-10-10 18:26     ` Gary Oblock
  0 siblings, 2 replies; 4+ messages in thread
From: Andrew Pinski @ 2020-10-10  3:13 UTC (permalink / raw)
  To: Jojo R; +Cc: GCC Development

On Fri, Oct 9, 2020 at 8:01 PM Jojo R <jiejie_rong@c-sky.com> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to check reachable between blocks
  2020-10-10  3:13   ` Andrew Pinski
@ 2020-10-10  3:31     ` Jojo R
  2020-10-10 18:26     ` Gary Oblock
  1 sibling, 0 replies; 4+ messages in thread
From: Jojo R @ 2020-10-10  3:31 UTC (permalink / raw)
  To: Andrew Pinski; +Cc: GCC Development

Hi,

	Thanks, i will dig it deeply :)

Jojo
在 2020年10月10日 +0800 AM11:14,Andrew Pinski <pinskia@gmail.com>,写道:
> On Fri, Oct 9, 2020 at 8:01 PM Jojo R <jiejie_rong@c-sky.com> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to check reachable between blocks
  2020-10-10  3:13   ` Andrew Pinski
  2020-10-10  3:31     ` Jojo R
@ 2020-10-10 18:26     ` Gary Oblock
  1 sibling, 0 replies; 4+ messages in thread
From: Gary Oblock @ 2020-10-10 18:26 UTC (permalink / raw)
  To: Andrew Pinski, Jojo R; +Cc: GCC Development

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 <pinskia@gmail.com>
Sent: Friday, October 9, 2020 8:13 PM
To: Jojo R <jiejie_rong@c-sky.com>
Cc: GCC Development <gcc@gcc.gnu.org>
Subject: Re: How to check reachable between blocks

On Fri, Oct 9, 2020 at 8:01 PM Jojo R <jiejie_rong@c-sky.com> 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-10-10 18:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <e72e4772-97e3-49f8-8a7d-3d4af002be45@Spark>
2020-10-10  3:00 ` How to check reachable between blocks Jojo R
2020-10-10  3:13   ` Andrew Pinski
2020-10-10  3:31     ` Jojo R
2020-10-10 18:26     ` Gary Oblock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).