Re: Question on patch -fprofile-partial-training

2023-05-15 Thread Qing Zhao via Gcc-patches
> On May 11, 2023, at 12:08 PM, Qing Zhao via Gcc-patches > wrote: > > > >> On May 10, 2023, at 9:15 AM, Jan Hubicka wrote: >> >>> Honza, Main motivation for this was profiling programs that contain specific code paths for different CPUs (such as graphics library in Firefox or

Re: Question on patch -fprofile-partial-training

2023-05-11 Thread Qing Zhao via Gcc-patches
> On May 10, 2023, at 9:15 AM, Jan Hubicka wrote: > >> Honza, >>> Main motivation for this was profiling programs that contain specific >>> code paths for different CPUs (such as graphics library in Firefox or Linux >>> kernel). In the situation training machine differs from the machine >>>

Re: Question on patch -fprofile-partial-training

2023-05-10 Thread Jan Hubicka via Gcc-patches
> Honza, > > Main motivation for this was profiling programs that contain specific > > code paths for different CPUs (such as graphics library in Firefox or Linux > > kernel). In the situation training machine differs from the machine > > program is run later, we end up optimizing for size all

Re: Question on patch -fprofile-partial-training

2023-05-09 Thread Qing Zhao via Gcc-patches
Honza, Thanks a lot for your comments. > On May 9, 2023, at 6:22 AM, Jan Hubicka wrote: > > > From my understanding, -fprofile-partial-training is one important option > for PGO performance. I don't think so, speed benefit would be rather small I guess. >>> I saw some

Re: Question on patch -fprofile-partial-training

2023-05-09 Thread Jan Hubicka via Gcc-patches
> > > > > > > > From my understanding, -fprofile-partial-training is one important > > > > option for PGO performance. > > > > > > I don't think so, speed benefit would be rather small I guess. > > I saw some articles online to introduce this option for gcc10, > >

Re: Question on patch -fprofile-partial-training

2023-05-09 Thread Martin Liška
On 5/4/23 15:37, Qing Zhao wrote: On May 4, 2023, at 9:05 AM, Martin Liška wrote: On 5/4/23 14:54, Qing Zhao wrote: On May 4, 2023, at 4:30 AM, Martin Liška wrote: On 5/3/23 21:10, Qing Zhao via Gcc-patches wrote: Hi, Jan, You added the following patch into gcc10: From

Re: Question on patch -fprofile-partial-training

2023-05-04 Thread Qing Zhao via Gcc-patches
> On May 4, 2023, at 9:05 AM, Martin Liška wrote: > > On 5/4/23 14:54, Qing Zhao wrote: >> >> >>> On May 4, 2023, at 4:30 AM, Martin Liška wrote: >>> >>> On 5/3/23 21:10, Qing Zhao via Gcc-patches wrote: Hi, Jan, You added the following patch into gcc10: From

Re: Question on patch -fprofile-partial-training

2023-05-04 Thread Martin Liška
On 5/4/23 14:54, Qing Zhao wrote: > > >> On May 4, 2023, at 4:30 AM, Martin Liška wrote: >> >> On 5/3/23 21:10, Qing Zhao via Gcc-patches wrote: >>> Hi, Jan, >>> >>> You added the following patch into gcc10: >>> >>> From 34fbe3f0946f88828765184ed6581bda62cdf49f Mon Sep 17 00:00:00 2001 >>>

Re: Question on patch -fprofile-partial-training

2023-05-04 Thread Qing Zhao via Gcc-patches
> On May 4, 2023, at 4:30 AM, Martin Liška wrote: > > On 5/3/23 21:10, Qing Zhao via Gcc-patches wrote: >> Hi, Jan, >> >> You added the following patch into gcc10: >> >> From 34fbe3f0946f88828765184ed6581bda62cdf49f Mon Sep 17 00:00:00 2001 >> From: Jan Hubicka >> Date: Thu, 5 Dec 2019

Re: Question on patch -fprofile-partial-training

2023-05-04 Thread Martin Liška
On 5/3/23 21:10, Qing Zhao via Gcc-patches wrote: > Hi, Jan, > > You added the following patch into gcc10: > > From 34fbe3f0946f88828765184ed6581bda62cdf49f Mon Sep 17 00:00:00 2001 > From: Jan Hubicka > Date: Thu, 5 Dec 2019 19:12:51 +0100 > Subject: [PATCH] cgraphclones.c (localize_profile):

Question on patch -fprofile-partial-training

2023-05-03 Thread Qing Zhao via Gcc-patches
Hi, Jan, You added the following patch into gcc10: >From 34fbe3f0946f88828765184ed6581bda62cdf49f Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 5 Dec 2019 19:12:51 +0100 Subject: [PATCH] cgraphclones.c (localize_profile): New function. * cgraphclones.c (localize_profile): New