How to check if two symbols are from same source unit during WPA ?

2016-04-12 Thread Prathamesh Kulkarni
Hi, How to check if two symbols are from same source file during WPA ? Is symbol1->lto_file_data == symbol2->lto_file_data true if symbol1 and symbol2 are from same source files ? Would that be a sufficient condition or do I need to check for something more ? Thanks, Prathamesh

Re: How to check if two symbols are from same source unit during WPA ?

2016-04-12 Thread Richard Biener
On April 12, 2016 3:47:19 PM GMT+02:00, Prathamesh Kulkarni wrote: >Hi, >How to check if two symbols are from same source file during WPA ? >Is symbol1->lto_file_data == symbol2->lto_file_data true if symbol1 >and symbol2 are from same >source files ? Would that be a sufficient condition or do I

Re: How to check if two symbols are from same source unit during WPA ?

2016-04-13 Thread Prathamesh Kulkarni
On 12 April 2016 at 22:41, Richard Biener wrote: > On April 12, 2016 3:47:19 PM GMT+02:00, Prathamesh Kulkarni > wrote: >>Hi, >>How to check if two symbols are from same source file during WPA ? >>Is symbol1->lto_file_data == symbol2->lto_file_data true if symbol1 >>and symbol2 are from same >>s

Re: How to check if two symbols are from same source unit during WPA ?

2016-04-14 Thread Richard Biener
On Thu, 14 Apr 2016, Prathamesh Kulkarni wrote: > On 12 April 2016 at 22:41, Richard Biener wrote: > > On April 12, 2016 3:47:19 PM GMT+02:00, Prathamesh Kulkarni > > wrote: > >>Hi, > >>How to check if two symbols are from same source file during WPA ? > >>Is symbol1->lto_file_data == symbol2->

Re: How to check if two symbols are from same source unit during WPA ?

2016-04-14 Thread Prathamesh Kulkarni
On 14 April 2016 at 13:56, Richard Biener wrote: > On Thu, 14 Apr 2016, Prathamesh Kulkarni wrote: > >> On 12 April 2016 at 22:41, Richard Biener wrote: >> > On April 12, 2016 3:47:19 PM GMT+02:00, Prathamesh Kulkarni >> > wrote: >> >>Hi, >> >>How to check if two symbols are from same source fi

Re: How to check if two symbols are from same source unit during WPA ?

2016-04-14 Thread Richard Biener
On Thu, 14 Apr 2016, Prathamesh Kulkarni wrote: > On 14 April 2016 at 13:56, Richard Biener wrote: > > On Thu, 14 Apr 2016, Prathamesh Kulkarni wrote: > > > >> On 12 April 2016 at 22:41, Richard Biener wrote: > >> > On April 12, 2016 3:47:19 PM GMT+02:00, Prathamesh Kulkarni > >> > wrote: > >>

Re: How to check if two symbols are from same source unit during WPA ?

2016-04-14 Thread Ramana Radhakrishnan
> > What happens in practice? GCC doesn't put functions in random > partitions. > The data goes into a separate partition AFAIU - it means that all data accesses are as though they are extern references which means there's not necessarily any CSE'ing ability that's available with section anc

Re: How to check if two symbols are from same source unit during WPA ?

2016-04-14 Thread Richard Biener
On Thu, 14 Apr 2016, Ramana Radhakrishnan wrote: > > > > > What happens in practice? GCC doesn't put functions in random > > partitions. > > > > The data goes into a separate partition AFAIU - it means that all data > accesses are as though they are extern references which means there's > n

Re: How to check if two symbols are from same source unit during WPA ?

2016-04-15 Thread Jan Hubicka
> On Thu, 14 Apr 2016, Ramana Radhakrishnan wrote: > > > > > > > > > What happens in practice? GCC doesn't put functions in random > > > partitions. > > > > > > > The data goes into a separate partition AFAIU - it means that all data > > accesses are as though they are extern references whic