Re: LTO : question about get_untransformed_body

2019-12-06 Thread Richard Biener
On December 6, 2019 5:46:25 PM GMT+01:00, Erick Ochoa wrote: > > >On 2019-12-06 5:50 a.m., Richard Biener wrote: >> On Wed, Dec 4, 2019 at 6:03 PM Erick Ochoa >> wrote: >>> >>> >>> >>> On 2019-12-04 7:52 a.m., Richard Biener wrote: On Tue, Dec 3, 2019 at 11:51 PM Erick Ochoa wrote: >>

Re: LTO : question about get_untransformed_body

2019-12-06 Thread Erick Ochoa
On 2019-12-06 5:50 a.m., Richard Biener wrote: > On Wed, Dec 4, 2019 at 6:03 PM Erick Ochoa > wrote: >> >> >> >> On 2019-12-04 7:52 a.m., Richard Biener wrote: >>> On Tue, Dec 3, 2019 at 11:51 PM Erick Ochoa >>> wrote: Hi, I am trying to use the function: `cgraph_node::get_

Re: LTO : question about get_untransformed_body

2019-12-06 Thread Richard Biener
On Wed, Dec 4, 2019 at 6:03 PM Erick Ochoa wrote: > > > > On 2019-12-04 7:52 a.m., Richard Biener wrote: > > On Tue, Dec 3, 2019 at 11:51 PM Erick Ochoa > > wrote: > >> > >> Hi, > >> > >> I am trying to use the function: `cgraph_node::get_untransformed_body` > >> during > >> the wpa stage of a S

Re: LTO : question about get_untransformed_body

2019-12-04 Thread Erick Ochoa
On 2019-12-04 7:52 a.m., Richard Biener wrote: > On Tue, Dec 3, 2019 at 11:51 PM Erick Ochoa > wrote: >> >> Hi, >> >> I am trying to use the function: `cgraph_node::get_untransformed_body` during >> the wpa stage of a SIMPLE_IPA_PASS transformation. While the execute function > > I think SIMPL

Re: LTO : question about get_untransformed_body

2019-12-04 Thread Richard Biener
On Tue, Dec 3, 2019 at 11:51 PM Erick Ochoa wrote: > > Hi, > > I am trying to use the function: `cgraph_node::get_untransformed_body` during > the wpa stage of a SIMPLE_IPA_PASS transformation. While the execute function I think SIMPLE_IPA_PASSes have no "WPA" stage but run at LTRANS time (WPA tr

Re: LTO : question about get_untransformed_body

2019-12-04 Thread Martin Liška
CC'ing Honza and Martin.

Re: LTO question

2010-04-29 Thread Xinliang David Li
ogle.com] >> Sent: 29 April 2010 17:17 >> To: Bingfeng Mei >> Cc: Richard Guenther; gcc@gcc.gnu.org >> Subject: Re: LTO question >> >> Just curious, what is the base line size of your comparison? Did you >> turn on GC (-ffunction-sections -fdata-sections

RE: LTO question

2010-04-29 Thread Bingfeng Mei
I turned on -ffunction-sections and compiled with -Os. The size gain at -O2 is less though. Bingfeng > -Original Message- > From: Xinliang David Li [mailto:davi...@google.com] > Sent: 29 April 2010 17:17 > To: Bingfeng Mei > Cc: Richard Guenther; gcc@gcc.gnu.org >

Re: LTO question

2010-04-29 Thread Xinliang David Li
ze for applications I tested > and should be very useful for us. > > Bingfeng > >> -Original Message- >> From: Richard Guenther [mailto:richard.guent...@gmail.com] >> Sent: 28 April 2010 10:33 >> To: Bingfeng Mei >> Cc: gcc@gcc.gnu.org >> Subject:

Re: LTO question

2010-04-29 Thread Jan Hubicka
> 2010/4/29 Jan Hubicka : > >> > On 4/28/10 10:26 , Manuel López-Ibá?ez wrote: > >> > Not yet, I mistakenly thought -fwhole-program is the same as -fwhopr > >> > and it is just for solving scaling issue of large program.(These two > >> > options do look similar :-). I shall try next.

Re: LTO question

2010-04-29 Thread Richard Guenther
2010/4/29 Jan Hubicka : >> > On 4/28/10 10:26 , Manuel López-Ibá?ez wrote: >> > Not yet, I mistakenly thought -fwhole-program is the same as -fwhopr >> > and it is just for solving scaling issue of large program.(These two >> > options do look similar :-). I shall try next. >> > >>>

Re: LTO question

2010-04-28 Thread Jan Hubicka
> > On 4/28/10 10:26 , Manuel López-Ibá?ez wrote: > > Not yet, I mistakenly thought -fwhole-program is the same as -fwhopr > > and it is just for solving scaling issue of large program.(These two > > options do look similar :-). I shall try next. > > >>> > > >>> Yep, -fwhopr is not i

Re: LTO question

2010-04-28 Thread Jan Hubicka
> On 4/28/10 10:26 , Manuel López-Ibá?ez wrote: > Not yet, I mistakenly thought -fwhole-program is the same as -fwhopr > and it is just for solving scaling issue of large program.(These two > options do look similar :-). I shall try next. > >>> > >>> Yep, -fwhopr is not ideal name, b

Re: LTO question

2010-04-28 Thread Diego Novillo
On 4/28/10 10:26 , Manuel López-Ibáñez wrote: Not yet, I mistakenly thought -fwhole-program is the same as -fwhopr and it is just for solving scaling issue of large program.(These two options do look similar :-). I shall try next. >>> >>> Yep, -fwhopr is not ideal name, but I guess t

Re: LTO question

2010-04-28 Thread Manuel López-Ibáñez
>> > Not yet, I mistakenly thought -fwhole-program is the same as -fwhopr >> > and it is just for solving scaling issue of large program.(These two >> > options do look similar :-). I shall try next. >> >> Yep, -fwhopr is not ideal name, but I guess there is not much >> to do about it. It is marke

RE: LTO question

2010-04-28 Thread Bingfeng Mei
010 14:59 > To: Bingfeng Mei > Cc: Richard Guenther; gcc@gcc.gnu.org > Subject: Re: LTO question > > On 28/04/2010 10:44, Bingfeng Mei wrote: > > Thanks, I will check what I can do with collect2. > > I was also planning to work on this, but won't have any >

Re: LTO question

2010-04-28 Thread Dave Korn
On 28/04/2010 10:44, Bingfeng Mei wrote: > Thanks, I will check what I can do with collect2. I was also planning to work on this, but won't have any objection if you get there before me! We have an open PR about this, would you care to use http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41376 to

RE: LTO question

2010-04-28 Thread Bingfeng Mei
I just tried -fwhole-program. It can achieve extra 3%-4% saving. That is brilliant. Thanks. Bingfeng > -Original Message- > From: Jan Hubicka [mailto:hubi...@ucw.cz] > Sent: 28 April 2010 13:59 > To: Bingfeng Mei > Subject: Re: LTO question > > > Not yet, I mi

RE: LTO question

2010-04-28 Thread Bingfeng Mei
eng Mei > Cc: gcc@gcc.gnu.org > Subject: Re: LTO question > > On Tue, Apr 27, 2010 at 6:30 PM, Bingfeng Mei > wrote: > > Hello, > > I have been playing with LTO. I notice that LTO doesn't work when > > object files are achived into static library files and the

Re: LTO question

2010-04-28 Thread Richard Guenther
On Tue, Apr 27, 2010 at 6:30 PM, Bingfeng Mei wrote: > Hello, > I have been playing with LTO. I notice that LTO doesn't work when > object files are achived into static library files and the final > binary is linked against them, although these object files are compiled > with -flto and I can see

Re: LTO question

2010-04-27 Thread Ian Lance Taylor
"Bingfeng Mei" writes: > I have been playing with LTO. I notice that LTO doesn't work when > object files are achived into static library files and the final > binary is linked against them, although these object files are compiled > with -flto and I can see all the lto related sections in .a fil

Re: LTO question

2009-10-13 Thread Richard Guenther
On Tue, Oct 13, 2009 at 5:18 PM, Bingfeng Mei wrote: > > >> -Original Message- >> From: Richard Guenther [mailto:richard.guent...@gmail.com] >> Sent: 13 October 2009 16:15 >> To: Bingfeng Mei >> Cc: gcc@gcc.gnu.org >> Subject: Re: LTO ques

RE: LTO question

2009-10-13 Thread Bingfeng Mei
> -Original Message- > From: Richard Guenther [mailto:richard.guent...@gmail.com] > Sent: 13 October 2009 16:15 > To: Bingfeng Mei > Cc: gcc@gcc.gnu.org > Subject: Re: LTO question > > On Tue, Oct 13, 2009 at 2:47 PM, Bingfeng Mei > wrote: > > Hell

Re: LTO question

2009-10-13 Thread Richard Guenther
On Tue, Oct 13, 2009 at 2:47 PM, Bingfeng Mei wrote: > Hello, > I just had the first taste with the latest LTO merge on our port. > Compiler is configured with LTO enabled and built correctly. > I tried the following example: > > a.c > extern void foo(int); > int main() > {  foo(20); >  return 1;

Re: LTO question

2009-10-13 Thread Diego Novillo
On Tue, Oct 13, 2009 at 09:46, Bingfeng Mei wrote: > Thanks. It works. I thought -fwhole-program was used with --combine and they > are replaced > by -flto. Now it seems that -flto is equivalent of --combine, and > -fwhole-program is still > important. That's approximately correct, yes. --com

RE: LTO question

2009-10-13 Thread Bingfeng Mei
> Sent: 13 October 2009 14:30 > To: Bingfeng Mei > Cc: gcc@gcc.gnu.org > Subject: Re: LTO question > > On Tue, Oct 13, 2009 at 08:47, Bingfeng Mei wrote: > > > a.c > > extern void foo(int); > > int main() > > {  foo(20); > >  return 1; > > }

Re: LTO question

2009-10-13 Thread Diego Novillo
On Tue, Oct 13, 2009 at 08:47, Bingfeng Mei wrote: > a.c > extern void foo(int); > int main() > {  foo(20); >  return 1; > } > > b.c > #include > void foo(int c) > { >  printf("Hello world: %d\n", c); > } > > compiled with: > firepath-elf-gcc -flto a.c b.c -save-temps -O2 > > I expected that foo