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

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

but it's a lot more visible with "libavcodec/dsputil.c" from FFmpeg package:

OPTFLAGS= -mnobitfield -m68060 -std=c99  -Wdeclaration-after-statement -Wdisabled-optimization -fno-math-errno -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-common -fomit-frame-pointer -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -Wundef -O2 -finline-functions -fgcse-after-reload -ftree-vectorize -fpredictive-commoning:

306kb

OPTFLAGS= -mnobitfield -m68060 -std=c99  -Wdeclaration-after-statement -Wdisabled-optimization -fno-math-errno -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-common -fomit-frame-pointer -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -Wundef -O3 -fno-unswitch-loops:

1,18mb

OPTFLAGS= -mnobitfield -m68060 -std=c99  -Wdeclaration-after-statement -Wdisabled-optimization -fno-math-errno -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-common -fomit-frame-pointer -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -Wundef -O3

1,18mb

Regards

  reply	other threads:[~2009-08-17 12:32 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 [this message]
2009-08-17 16:01     ` Paolo Bonzini
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=171913d8.edfa43f.4a894dda.88a2c@o2.pl \
    --to=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).