This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, committed] Function specific option changes (IA-64, hot/cold, scheduling)
- From: "Richard Guenther" <richard dot guenther at gmail dot com>
- To: "Michael Meissner" <gnu at the-meissners dot org>, "Daniel Berlin" <dberlin at dberlin dot org>, "Andrew Pinski" <pinskia at gmail dot com>, "H.J. Lu" <hjl dot tools at gmail dot com>, "Jan Hubicka" <hubicka at ucw dot cz>, gcc-patches at gcc dot gnu dot org, karthikkumar at gmail dot com
- Date: Mon, 28 Jul 2008 17:30:47 +0200
- Subject: Re: [PATCH, committed] Function specific option changes (IA-64, hot/cold, scheduling)
- References: <20080725235800.GA4363@tiktok.the-meissners.org> <20080726113829.GA26692@atrey.karlin.mff.cuni.cz> <20080726135539.GA25488@tiktok.the-meissners.org> <20080727175057.GA30776@lucon.org> <20080727232819.GA27730@tiktok.the-meissners.org> <de8d50360807271636v4f2bda43pa35668219f90d5bc@mail.gmail.com> <6dc9ffc80807271655i4a4c92bu83d84c7879e676d5@mail.gmail.com> <de8d50360807271701k1ea193b4r83bf4ecf74d48a56@mail.gmail.com> <4aca3dc20807271710t213d2d9dwf3102d5b42029132@mail.gmail.com> <20080728152335.GA16993@tiktok.the-meissners.org>
On Mon, Jul 28, 2008 at 5:23 PM, Michael Meissner <gnu@the-meissners.org> wrote:
> On Sun, Jul 27, 2008 at 08:10:17PM -0400, Daniel Berlin wrote:
>> On Sun, Jul 27, 2008 at 8:01 PM, Andrew Pinski <pinskia@gmail.com> wrote:
>> > On Sun, Jul 27, 2008 at 4:55 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
>> >> How about a switch to apply a specific set of optimization to all cold
>> >> functions, like -Os -mpreferred-stack-boundary=2? Of cause, it should
>> >> be off by default.
>> >
>> > Why not just better tune the compiler? Seriously what is happening is
>> > that are marking functions which are not really cold.
>>
>> I would agree with this.
>>
>> At Google we have seen some serious performance regressions because
>> the definition of cold function seems mildly broken in some way
>> (haven't analyzed yet) and marked *some of the hottest functions we
>> have* as cold.
>
> One of the things Honza mentioned was cold functions inlining hot functions
> (presumably this should turn the cold function into a hot function). Note, if
> ports need to change the rtl timings for optimize space, the
> TARGET_SET_CURRENT_FUNCTION hook is the place to do this.
Sorry, but you want to switch this per basic-block instead, not on a
function level.
Richard.
- References:
- [PATCH, committed] Function specific option changes (IA-64, hot/cold, scheduling)
- Re: [PATCH, committed] Function specific option changes (IA-64, hot/cold, scheduling)
- Re: [PATCH, committed] Function specific option changes (IA-64, hot/cold, scheduling)
- Re: [PATCH, committed] Function specific option changes (IA-64, hot/cold, scheduling)
- Re: [PATCH, committed] Function specific option changes (IA-64, hot/cold, scheduling)
- Re: [PATCH, committed] Function specific option changes (IA-64, hot/cold, scheduling)
- Re: [PATCH, committed] Function specific option changes (IA-64, hot/cold, scheduling)
- Re: [PATCH, committed] Function specific option changes (IA-64, hot/cold, scheduling)
- Re: [PATCH, committed] Function specific option changes (IA-64, hot/cold, scheduling)
- Re: [PATCH, committed] Function specific option changes (IA-64, hot/cold, scheduling)