public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: N8TM@aol.com
To: law@cygnus.com
Cc: amylaar@cygnus.co.uk, egcs@cygnus.com
Subject: Re: 19980707 built on win95/i686-pc-cygwin32
Date: Sun, 12 Jul 1998 08:15:00 -0000	[thread overview]
Message-ID: <877a6a53.35a8d312@aol.com> (raw)

In a message dated 7/12/98 12:44:04 AM Pacific Daylight Time,
law@hurl.cygnus.com writes:
>icache or dcache?
> Either could be adversely effected I suppose.
>  
>  The partial redundancy elimination based version of gcse tends to trade
>  code size for code speed.  So if your code is icache sensitive it could
>  be a lose.

I certainly don't know all there is to know about cache, but I believe that
icache and dcache are separate at level 1, not at level 2.  The performance
loss is occurring when both code size and data size increase, but not unless
both occur, and not in Linux.  So it looks to me like a level 2 cache miss
issue, with Linux apparently allowing a longer life for level 2 cache data.
Most of these Livermore loops are small enough that they ought to to stick in
level 1 cache, with the aid of the p2align scheme.  Kernels 9 and 16 are
bigger than average, but Kernel 11, which Linux also improves on, is (or ought
to be) small even with unrolling.

<One experiment you might consider trying is to run the older classic
<gcse pass instead of the pre based gcse pass.

I'll do that.

<The majority of the cases where I've seen pre lose in the past have
<been register pressure issues.

That certainly must make it tough to make a compiler which optimizes both on
Intel and on architectures with 4 times as many registers available.  I would
think that an "optimization" which loses on account of register pressure in
Livermore Kernels is not one I would want active in general.  I think there is
a correlation here, too, with the relative performance of gcc-2.8.1/g77-0.5.23
and egcs.  Egcs tends to achieve top performance on cases which don't need
many registers but fall down on ones which want to use more registers than are
available.

             reply	other threads:[~1998-07-12  8:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-12  8:15 N8TM [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-07-12  9:18 N8TM
1998-07-12  0:41 N8TM
1998-07-12  0:41 ` Jeffrey A Law
1998-07-10 23:05 N8TM
1998-07-11 22:54 ` Jeffrey A Law
1998-07-10 20:04 N8TM
1998-07-10  0:33 N8TM
1998-07-10  7:01 ` Hannu Koivisto
1998-07-10 15:56 ` Joern Rennecke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877a6a53.35a8d312@aol.com \
    --to=n8tm@aol.com \
    --cc=amylaar@cygnus.co.uk \
    --cc=egcs@cygnus.com \
    --cc=law@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).