public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <bonzini@gnu.org>
To: ami_stuff <ami_stuff@o2.pl>
Cc: Richard Guenther <richard.guenther@gmail.com>, gcc@gcc.gnu.org
Subject: Re: "-fno-unswitch-loops" option have no effect?
Date: Mon, 17 Aug 2009 16:01:00 -0000	[thread overview]
Message-ID: <4A895B1A.1010501@gnu.org> (raw)
In-Reply-To: <171913d8.edfa43f.4a894dda.88a2c@o2.pl>

On 08/17/2009 02:32 PM, ami_stuff wrote:
> Hi,
>
>> Works fine for me.  gcc.dg/tree-ssa/loop-6.c is unswitched with -O3
>> but not with -O3 -fno-unswitch-loops.
>
> This one works for me too.
>
> Could you try to compile "deflate.c" from libz?
>
> Here are my results:
>
> -m68060 -O3 -fno-unswitch-loops                                                            - 12,9kb
> -m68060 -O3                                                                                - 12,9kb
> -m68060 -O2 -finline-functions -fgcse-after-reload -ftree-vectorize -fpredictive-commoning - 12,4kb

And why do you think that loop unswitching has anything to do with the 
size growth?

BTW, -O3 is not guaranteed to give better performance than -O2.

Paolo

  reply	other threads:[~2009-08-17 13:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-17  7:19 ami_stuff
     [not found] ` <56d259a00908170344v54442954u3a5d0337de3b98fe@mail.gmail.com>
2009-08-17 13:29   ` ami_stuff
2009-08-17 19:42     ` Bernd Roesch
2009-08-17 19:54       ` ami_stuff
2009-08-17 22:16       ` Alexander Strange
2009-08-17 13:33 ` Richard Guenther
2009-08-17 13:35   ` ami_stuff
2009-08-17 16:01     ` Paolo Bonzini [this message]
2009-08-17 16:07       ` ami_stuff
2009-08-17 16:14         ` Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A895B1A.1010501@gnu.org \
    --to=bonzini@gnu.org \
    --cc=ami_stuff@o2.pl \
    --cc=gcc@gcc.gnu.org \
    --cc=richard.guenther@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).