public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: -fprofile-generate and -fprofile-use
@ 2005-07-20 17:45 girish vaitheeswaran
  2005-07-20 19:01 ` Janis Johnson
  0 siblings, 1 reply; 29+ messages in thread
From: girish vaitheeswaran @ 2005-07-20 17:45 UTC (permalink / raw)
  To: gcc

I am using gcc 3.4.3
-girish


> 
> 
> --- Steven Bosscher <stevenb@suse.de> wrote:
> 
> > On Wednesday 20 July 2005 18:53, girish
> > vaitheeswaran wrote:
> > > I am seeing a 20% slowdown with feedback
> > optimization.
> > > Does anyone have any thoughts on this.
> > 
> > My first thought is that you should probably first
> > tell what compiler
> > you are using.
> > 
> > Gr.
> > Steven
> > 
> > 
> 
> 

^ permalink raw reply	[flat|nested] 29+ messages in thread
[parent not found: <AE7DE2E6-9131-4407-9585-746013E36070@apple.com>]
* Re: -fprofile-generate and -fprofile-use
@ 2005-08-30 16:24 Peter Steinmetz
  2005-08-30 16:24 ` Steven Bosscher
  2005-08-30 19:58 ` Jan Hubicka
  0 siblings, 2 replies; 29+ messages in thread
From: Peter Steinmetz @ 2005-08-30 16:24 UTC (permalink / raw)
  To: gcc; +Cc: janis187, girish_vaithees, hubicka


There was some discussion a few weeks ago about some apps running slower
with FDO enabled.

I've recently investigated a similar situation using mainline.  In my case,
the fact that the loop_optimize pass is disabled during FDO was the cause
of the slowdown.  It appears that was recently disabled as part of Jan
Hubicka's patch to eliminate RTL based profiling.  The commentary indicates
that the old loop optimizer is incompatible with tree profiling.

While this doesn't explain all of the degradations discussed (some were
showing up on older versions of the compiler), it may explain some.

Pete

^ permalink raw reply	[flat|nested] 29+ messages in thread
* -fprofile-generate and -fprofile-use
@ 2005-07-20 16:53 girish vaitheeswaran
  2005-07-20 16:59 ` Steven Bosscher
  0 siblings, 1 reply; 29+ messages in thread
From: girish vaitheeswaran @ 2005-07-20 16:53 UTC (permalink / raw)
  To: gcc

I am seeing a 20% slowdown with feedback optimization.
Does anyone have any thoughts on this.
These are the steps I followed

1. Compiled the application using -fprofile-generate.
I used this flag both in the compile flags and as part
of the link flags. I also had to use libgcov.a during
the link phase otherwise it would die looking for gcov
functions.
2. Ran a representative work-load
3. Followed (1) except that instead of
-fprofile-generate used -fprofile-use

I had to drop the "-fprofile-use" on 2 files as they
had corrupted profile data. I have tried this
experiment with -fprofile-arc and
-fbranch-probabilities as well and I get the same 20%
slowdown.

Thx
-girish

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2005-09-02 15:29 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-20 17:45 -fprofile-generate and -fprofile-use girish vaitheeswaran
2005-07-20 19:01 ` Janis Johnson
2005-07-20 20:16   ` girish vaitheeswaran
2005-07-20 22:44   ` Jan Hubicka
2005-07-20 23:38     ` girish vaitheeswaran
2005-07-21 13:03       ` Jan Hubicka
2005-07-25 17:39         ` girish vaitheeswaran
2005-07-26  7:00           ` Jan Hubicka
2005-07-26 18:10             ` girish vaitheeswaran
2005-07-30 19:20               ` Jan Hubicka
2005-07-21 18:03       ` Kelley Cook
2005-07-21 21:15         ` girish vaitheeswaran
     [not found] <AE7DE2E6-9131-4407-9585-746013E36070@apple.com>
2005-09-01 21:19 ` girish vaitheeswaran
2005-09-01 21:45   ` Steven Bosscher
2005-09-01 22:54     ` Janis Johnson
2005-09-01 23:13       ` Steven Bosscher
2005-09-02 15:29       ` Kai Henningsen
  -- strict thread matches above, loose matches on Subject: below --
2005-08-30 16:24 Peter Steinmetz
2005-08-30 16:24 ` Steven Bosscher
2005-08-30 17:57   ` Peter Steinmetz
2005-08-31 11:44     ` Zdenek Dvorak
2005-08-31 18:16       ` Peter Steinmetz
2005-09-01 19:04         ` Jan Hubicka
2005-09-02  9:01           ` Zdenek Dvorak
2005-08-30 19:58 ` Jan Hubicka
2005-08-31  1:25   ` girish vaitheeswaran
2005-08-31  4:33   ` Peter Steinmetz
2005-07-20 16:53 girish vaitheeswaran
2005-07-20 16:59 ` Steven Bosscher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).