From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 5169 invoked from network); 14 Jan 1999 15:40:37 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 14 Jan 1999 15:40:37 -0000 Received: from julia.creaholic.com (euclid.creaholic.com [194.209.56.210]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id KAA12414 for ; Thu, 14 Jan 1999 10:17:47 -0500 Received: from amazing.ch ([194.209.56.213]) by julia.creaholic.com (Post.Office MTA v3.1.2 release (PO205-101c) ID# 0-44790U100L100S0) with SMTP id AAA15989 for ; Thu, 14 Jan 1999 16:17:34 +0100 Received: by amazing.ch id <6wjm@amazing.ch>; Thu, 14 Jan 1999 16:17:00 GMT To: axp-list@redhat.com In-Reply-To: <19990113225007.D7753@piglet.twiddle.net> (from Richard Henderson ) (at Wed, 13 Jan 1999 22:50:07 -0800) Organization: sometimes private, sometimes creaholic sa MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable From: axp@amazing.ch (Christoph Dworzak) Subject: Re: Alpha 21264. Message-Id: <2791d99a.u10t12e.b103a-axp@amazing.ch> Date: Thu, 14 Jan 1999 16:17:00 GMT Hi On Jan 13 Richard Henderson (rth@twiddle.net) wrote: > Just a data point -- gcc's alpha instruction scheduling is pretty > fair these days. Register allocation needs work though. :-P I second this (trying to squeeze some more cycles out of egcs1.1.1-generated code...) Register allocation: Does egcs ever use $11-$15? In my code it badly needs more registers, but it doesn't use them. Instruction scheduling: It does a very good job. I noticed just one case which could be improved. >From this C-snippet: static void s11 ( =20 unsigned long a1, unsigned long a2, =20 unsigned long a3, unsigned long a4, =20 unsigned long a5, unsigned long a6) { =20 a1 ^=3D t[31]; =20 a2 ^=3D t[ 0]; =20 a3 ^=3D t[ 1]; =20 a4 ^=3D t[ 2]; =20 a5 ^=3D t[ 3]; =20 a6 ^=3D t[ 4]; [..] it generated this (actually it used $1 as the index-register, but I freed that and use $30): =09ldq $3,0($30) =09ldq $2,248($30) =09xor $17,$3,$17 =09xor $16,$2,$16 =09ldq $3,16($30) =09ldq $2,8($30) =09xor $19,$3,$19 =09xor $18,$2,$18 =09ldq $3,32($30) =09ldq $2,24($30) =09xor $21,$3,$21 =09xor $20,$2,$20 Reordering helps here: =09ldq $3,0($30) =09ldq $2,248($30) =09ldq $4,16($30) =09ldq $5,8($30) =09xor $17,$3,$17 =09xor $16,$2,$16 =09ldq $6,32($30) =09ldq $7,24($30) =09xor $19,$4,$19 =09xor $18,$5,$18 =09xor $21,$6,$21 =09xor $20,$7,$20 >From 9 down to 6 Cycles :) About Optimizations: I use "-O1 -fschedule-insns2 -fexpensive-optimizations" This generates Code which is about 30% faster than any higher Optimization-Levels. Why could this be? What does -O2 do which -O1 doesn't do? Bye =20dworz