Re: [PATCH][Middle-end][Version 2]Add a new option to control inlining only on static functions

2018-09-17 Thread Qing Zhao
> On Sep 14, 2018, at 3:45 PM, Andrew Pinski wrote: > > On Fri, Sep 14, 2018 at 1:42 PM Andrew Pinski > wrote: >> >> On Fri, Sep 14, 2018 at 1:34 PM Qing Zhao wrote: >>> >>> Hi, >>> >>> this is the 2nd version of the patch to add a new first-class option >>> >>>

Re: [PATCH][Middle-end][Version 2]Add a new option to control inlining only on static functions

2018-09-14 Thread Qing Zhao
> On Sep 14, 2018, at 3:42 PM, Andrew Pinski wrote: > > On Fri, Sep 14, 2018 at 1:34 PM Qing Zhao > wrote: >> >> Hi, >> >> this is the 2nd version of the patch to add a new first-class option >> >> -finline-only-static >> >> to guide inlining only on static fun

Re: [PATCH][Middle-end][Version 2]Add a new option to control inlining only on static functions

2018-09-14 Thread Andrew Pinski
On Fri, Sep 14, 2018 at 1:42 PM Andrew Pinski wrote: > > On Fri, Sep 14, 2018 at 1:34 PM Qing Zhao wrote: > > > > Hi, > > > > this is the 2nd version of the patch to add a new first-class option > > > > -finline-only-static > > > > to guide inlining only on static functions. > > > > -finline-only

Re: [PATCH][Middle-end][Version 2]Add a new option to control inlining only on static functions

2018-09-14 Thread Andrew Pinski
On Fri, Sep 14, 2018 at 1:34 PM Qing Zhao wrote: > > Hi, > > this is the 2nd version of the patch to add a new first-class option > > -finline-only-static > > to guide inlining only on static functions. > > -finline-only-static > By default, GCC inlines functions without considering whether they

[PATCH][Middle-end][Version 2]Add a new option to control inlining only on static functions

2018-09-14 Thread Qing Zhao
Hi, this is the 2nd version of the patch to add a new first-class option -finline-only-static to guide inlining only on static functions. -finline-only-static By default, GCC inlines functions without considering whether they are static or not. This flag guides inliner to only inline stati