From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13467 invoked by alias); 15 Jan 2003 05:10:02 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 13440 invoked from network); 15 Jan 2003 05:09:58 -0000 Received: from unknown (HELO dellpi.pinski.fam) (66.161.181.231) by 209.249.29.67 with SMTP; 15 Jan 2003 05:09:58 -0000 Received: from physics.uc.edu (IDENT:pinskia@localhost.pinski.fam [127.0.0.1]) by dellpi.pinski.fam (8.12.2/8.12.1) with ESMTP id h0F59TD8017363; Wed, 15 Jan 2003 00:09:31 -0500 (EST) Date: Wed, 15 Jan 2003 17:37:00 -0000 Subject: Re: optimizations Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v551) Cc: Andrew Pinski , gcc-help , "gcc@gcc.gnu.org" To: Reza Roboubi From: Andrew Pinski In-Reply-To: <3E24B01F.3348FC3C@linisoft.com> Message-Id: <8682D892-2847-11D7-A1D5-000393A6D2F2@physics.uc.edu> Content-Transfer-Encoding: 7bit X-SW-Source: 2003-01/txt/msg00717.txt.bz2 On Tuesday, Jan 14, 2003, at 16:49 US/Pacific, Reza Roboubi wrote: > Could you please also tell me if 3.3 and 3.4 remove the extra mov's in > and out > of %eax. Ideally, there should be no more than 4 instructions in the > critical > loop. > For some reason it is not (even with -fnew-ra), but on PPC there is no extra load/store. Thanks, Andrew Pinski PS here is the asm for the loop of i[3-6]686, pentium4: .L2: movl -4(%ebp), %eax <== still does the store cmpl $16, %eax je .L7 incl %eax movl %eax, -4(%ebp) <== and load jmp .L2 .L7: I do not have access to the machine with 3.{3,4} on PPC right now.