From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32030 invoked by alias); 8 May 2009 09:18:41 -0000 Received: (qmail 32020 invoked by uid 22791); 8 May 2009 09:18:40 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-fx0-f213.google.com (HELO mail-fx0-f213.google.com) (209.85.220.213) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 08 May 2009 09:18:36 +0000 Received: by fxm9 with SMTP id 9so1271046fxm.8 for ; Fri, 08 May 2009 02:18:33 -0700 (PDT) Received: by 10.204.58.9 with SMTP id e9mr3383477bkh.15.1241774313705; Fri, 08 May 2009 02:18:33 -0700 (PDT) Received: from scientist-2.lan (93-34-218-120.ip51.fastwebnet.it [93.34.218.120]) by mx.google.com with ESMTPS id c28sm962270fka.22.2009.05.08.02.18.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 08 May 2009 02:18:33 -0700 (PDT) Message-ID: <4A03F8EA.5070705@gnu.org> Date: Fri, 08 May 2009 11:40:00 -0000 From: Paolo Bonzini User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: Jean Christophe Beyler CC: "gcc@gcc.gnu.org" Subject: Re: Code optimization only in loops References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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-05/txt/msg00217.txt.bz2 > It seems that when set in a loop, the program is able to perform some > type of optimization to actually get the use of the offsets where as > in the case of no loop, we have twice the calculations of instructions > for each address calculations. I suggest you look at the dumps for i386 to see which pass does the changes, and then see what happens in your port. Paolo