From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9349 invoked by alias); 18 Jul 2005 14:31:31 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 9293 invoked by uid 22791); 18 Jul 2005 14:31:23 -0000 Received: from atrey.karlin.mff.cuni.cz (HELO atrey.karlin.mff.cuni.cz) (195.113.31.123) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 18 Jul 2005 14:31:23 +0000 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 4018) id 9F1CF4B406E; Mon, 18 Jul 2005 16:29:43 +0200 (CEST) Date: Mon, 18 Jul 2005 14:31:00 -0000 From: Jan Hubicka To: Rajkishore Barik Cc: gcc@gcc.gnu.org Subject: Re: -fprofile-arcs Message-ID: <20050718142943.GB22259@atrey.karlin.mff.cuni.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6+20040907i X-SW-Source: 2005-07/txt/msg00783.txt.bz2 > Hi, > > I am trying to profile the frequency of each basic block of > SPEC 2000 benchmarks by compiling them using -fprofile-arcs and opt -O3. > After running the benchmark, when I try to read "bb->count" while > compiling > using "-fbranch-probabilities and -O3", I get "0" values for basic blocks > which were known to execute for sure. Any clue as to where I am missing? > Is "bb->count" is the right way to get the dynamic frequency in the second > pass? It is. You would need to provide more information for me to figure out what is going wrong. Of course the bb->count is initialized only after profile is read in that at current mainline is pretty late in compilation queue (after bp RTL pass), but this is going to change hopefully at monday. Honza > > regards, > Raj