From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3624 invoked by alias); 17 Aug 2009 12:32:40 -0000 Received: (qmail 3607 invoked by uid 22791); 17 Aug 2009 12:32:36 -0000 X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,SARE_SUB_ENC_UTF8,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mailout1.go2.pl (HELO mailout1.go2.pl) (193.17.41.11) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 17 Aug 2009 12:32:31 +0000 Received: from mailout1.go2.pl (unknown [10.0.0.105]) by mailout1.go2.pl (Postfix) with ESMTP id A69F65F0039; Mon, 17 Aug 2009 14:32:27 +0200 (CEST) Received: from o2.pl (unknown [10.0.0.37]) by mailout1.go2.pl (Postfix) with SMTP; Mon, 17 Aug 2009 14:32:27 +0200 (CEST) Subject: =?UTF-8?Q?Re:_"-fno-unswitch-loops"_option_have_no_effect=3F?= From: =?UTF-8?Q?ami=5Fstuff?= To: =?UTF-8?Q?Richard_Guenther?= Cc: gcc@gcc.gnu.org In-Reply-To: <84fc9c000908170438t787f3e75w15c44dd8e9080a2d@mail.gmail.com> References: <5dd91bc1.7ff0289a.4a88a6a0.1e15f@o2.pl> <84fc9c000908170438t787f3e75w15c44dd8e9080a2d@mail.gmail.com> Mime-Version: 1.0 Message-ID: <171913d8.edfa43f.4a894dda.88a2c@o2.pl> Date: Mon, 17 Aug 2009 13:35:00 -0000 X-Originator: 212.67.149.145 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-08/txt/msg00288.txt.bz2 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 -fpredi= ctive-commoning - 12,4kb but it's a lot more visible with "libavcodec/dsputil.c" from FFmpeg package: OPTFLAGS=3D -mnobitfield -m68060 -std=3Dc99 -Wdeclaration-after-statement = -Wdisabled-optimization -fno-math-errno -D_ISOC99_SOURCE -D_POSIX_C_SOURCE= =3D200112 -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE -fno-common -fomit-f= rame-pointer -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wcast-qua= l -Wwrite-strings -Wundef -O2 -finline-functions -fgcse-after-reload -ftree= -vectorize -fpredictive-commoning: 306kb OPTFLAGS=3D -mnobitfield -m68060 -std=3Dc99 -Wdeclaration-after-statement = -Wdisabled-optimization -fno-math-errno -D_ISOC99_SOURCE -D_POSIX_C_SOURCE= =3D200112 -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE -fno-common -fomit-f= rame-pointer -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wcast-qua= l -Wwrite-strings -Wundef -O3 -fno-unswitch-loops: 1,18mb OPTFLAGS=3D -mnobitfield -m68060 -std=3Dc99 -Wdeclaration-after-statement = -Wdisabled-optimization -fno-math-errno -D_ISOC99_SOURCE -D_POSIX_C_SOURCE= =3D200112 -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE -fno-common -fomit-f= rame-pointer -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wcast-qua= l -Wwrite-strings -Wundef -O3 1,18mb Regards