From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26885 invoked by alias); 6 Feb 2008 11:06:41 -0000 Received: (qmail 26445 invoked by uid 48); 6 Feb 2008 11:05:57 -0000 Date: Wed, 06 Feb 2008 11:06:00 -0000 Message-ID: <20080206110557.26444.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug rtl-optimization/21676] [4.0/4.1/4.2/4.3 Regression] Optimizer regression: SciMark sparse matrix benchmark In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ubizjak at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-02/txt/msg00647.txt.bz2 ------- Comment #14 from ubizjak at gmail dot com 2008-02-06 11:05 ------- We still generate: .L8: movl (%ebx), %eax addl $1, %edx addl $4, %ebx fldl (%edi,%eax,8) fmull (%ecx) addl $8, %ecx cmpl %edx, %esi faddp %st, %st(1) jg .L8 This could IMO be optimized on RTL level, to use %edx as a count variable: .L8: movl (%ebx,%edx,4), %eax fldl (%edi,%eax,8) fmull (%ecx,%edx,8) addl $1, %edx cmpl %edx, %esi faddp %st, %st(1) jg .L8 This would be optimal code for this loop. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21676