From: axp@amazing.ch (Christoph Dworzak)
To: axp-list@redhat.com
Subject: Re: Alpha 21264.
Date: Thu, 14 Jan 1999 16:17:00 GMT [thread overview]
Message-ID: <2791d99a.u10t12e.b103a-axp@amazing.ch> (raw)
In-Reply-To: <19990113225007.D7753@piglet.twiddle.net> (from Richard Henderson <rth@twiddle.net>) (at Wed, 13 Jan 1999 22:50:07 -0800)
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 (
unsigned long a1, unsigned long a2,
unsigned long a3, unsigned long a4,
unsigned long a5, unsigned long a6) {
a1 ^= t[31];
a2 ^= t[ 0];
a3 ^= t[ 1];
a4 ^= t[ 2];
a5 ^= t[ 3];
a6 ^= t[ 4];
[..]
it generated this (actually it used $1 as
the index-register, but I freed that and use
$30):
ldq $3,0($30)
ldq $2,248($30)
xor $17,$3,$17
xor $16,$2,$16
ldq $3,16($30)
ldq $2,8($30)
xor $19,$3,$19
xor $18,$2,$18
ldq $3,32($30)
ldq $2,24($30)
xor $21,$3,$21
xor $20,$2,$20
Reordering helps here:
ldq $3,0($30)
ldq $2,248($30)
ldq $4,16($30)
ldq $5,8($30)
xor $17,$3,$17
xor $16,$2,$16
ldq $6,32($30)
ldq $7,24($30)
xor $19,$4,$19
xor $18,$5,$18
xor $21,$6,$21
xor $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
dworz
next prev parent reply other threads:[~1999-01-14 15:40 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-12 3:55 rpcc Christoph Dworzak
1999-01-12 3:20 ` rpcc Peter Petrakis
1999-01-12 4:59 ` rpcc Richard Henderson
[not found] ` <rth@twiddle.net>
1999-01-12 16:59 ` rpcc Christoph Dworzak
1999-01-12 19:27 ` rpcc Richard Henderson
1999-01-12 21:06 ` rpcc Wes Bauske
1999-01-13 2:16 ` rpcc Richard Henderson
1999-01-14 16:17 ` Christoph Dworzak [this message]
1999-01-14 15:46 ` Alpha 21264 Greg Lindahl
1999-01-14 17:27 ` Richard Henderson
1999-10-24 15:04 ` patch_v2: (on Alpha) emulating missing instructions Christoph Dworzak
1999-10-25 9:47 ` Phil Carmody
-- strict thread matches above, loose matches on Subject: below --
1999-01-13 14:10 Alpha 21264 Andy Almond
1999-01-13 16:36 ` Jeff Sturm
1999-01-14 6:50 ` Richard Henderson
1999-01-13 15:18 Mailinglist --> PUBLIC
1999-01-13 20:50 ` Joachim Wesner
1999-01-13 21:12 ` Ross A. Knepper
1999-01-13 22:58 ` Joachim Wesner
1999-01-14 6:45 ` Richard Henderson
1999-01-14 10:02 ` Thorsten Koch
1999-01-14 0:16 ` Wes Bauske
1999-10-18 14:46 patch_v2: (on Alpha) emulating missing instructions Robert Harley
1999-10-18 15:31 ` Phil Carmody
1999-10-23 20:39 ` Richard Henderson
1999-10-21 16:23 ` patch_v3: emulating missing instructions on Alpha Luke Deller
1999-10-23 20:55 ` Richard Henderson
1999-10-24 0:28 ` Daniel Potts
1999-10-25 1:22 ` Luke Deller
1999-10-28 23:34 ` Richard Henderson
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox