Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: kenner@lab.ultra.nyu.edu (Richard Kenner)
Subject: Re: Request for help with Alpha OSF C compiler (instruction scheduling)
Date: 11 Aug 1993 02:13:42 GMT	[thread overview]
Message-ID: <249kkm$ocj@cmcl2.NYU.EDU> (raw)
In-Reply-To: 249bdeINN98a@phage.cshl.org

In article <249bdeINN98a@phage.cshl.org> wchang@phage.cshl.org ( CSHL) writes:
>I am implementing a very tight innermost loop consisting of six integer
>"MAX" operations, 20 instructions altogether.  While the C compiler produced
>very tight code, using conditional-moves for "MAX", it apparently does
>not optimize instruction scheduling.  For example, it compiles
>
>  if (a>b) b=a;
>  if (c>d) d=c;
>to
>  cmple a,b,$0
>  cmoveq $0,a,b
>  cmple c,d,$0
>  cmoveq $0,c,d
>
>which disrupts the pipeline (instruction latency plus register $0 bottleneck)
>and causes 50% performance degradation.  

GCC certainly ought to be able to get it right, though I haven't
tried that particular case since I'd need a larger code fragment.


  reply	other threads:[~1993-08-11  2:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-08-10 23:36 Request for help with Alpha OSF C compiler (instruction scheduling)  CSHL
1993-08-11  2:13 ` Richard Kenner [this message]
1993-08-11 21:42 ` Gail L. Grant
  -- strict thread matches above, loose matches on Subject: below --
1993-08-11 13:11  CSHL
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