From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 499 invoked by alias); 8 Apr 2008 20:01:19 -0000 Received: (qmail 488 invoked by uid 22791); 8 Apr 2008 20:01:18 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 08 Apr 2008 20:01:01 +0000 Received: (qmail 16023 invoked from network); 8 Apr 2008 20:00:59 -0000 Received: from unknown (HELO ?192.168.0.2?) (mitchell@127.0.0.2) by mail.codesourcery.com with ESMTPA; 8 Apr 2008 20:00:59 -0000 Message-ID: <47FBCEF5.50001@codesourcery.com> Date: Tue, 08 Apr 2008 20:42:00 -0000 From: Mark Mitchell User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Jan Hubicka CC: Richard Guenther , gcc-patches@gcc.gnu.org Subject: Re: Patch ping... References: <20080405162606.GA22594@atrey.karlin.mff.cuni.cz> <84fc9c000804050953o429fde26jb3938827ff9dc5a@mail.gmail.com> <20080405195910.GF28471@atrey.karlin.mff.cuni.cz> In-Reply-To: <20080405195910.GF28471@atrey.karlin.mff.cuni.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2008-04/txt/msg00708.txt.bz2 Jan Hubicka wrote: > I would like to have hot_bb_p predicate that take into accounts the > hints: > 1) hot/cold function attributes > 2) -Os versus optimize_size > 3) function local profile (ie things guarded with __builtin_expect or > leading to abort) > 4) profile feedback > and decide on hotness. With -Os defaulting to conservative behaviour > (ie function is hot only if attribute or profile feedback suggest so) > and -O2 defaulting to aggressive behaviour (function is hot if not > declared cold, function local profile is within bounds). This seems like a good idea, except that I'm not sure it's what people really want from -Os. With -Os, I think some users want small code, all the time, period. -- Mark Mitchell CodeSourcery mark@codesourcery.com (650) 331-3385 x713