From: ae@skyline.mti.sgi.com (Andrew Essen)
Subject: Re: DEC RIP
Date: 1998/02/13 [thread overview]
Message-ID: <6c0607$354@chronicle.mti.sgi.com> (raw)
In-Reply-To: 6btivi$hna@news.or.intel.com
In article <6btivi$hna@news.or.intel.com>,
Jonathan C Hall <jchall@ichips.intel.com> wrote:
>Andrew Reilly (reilly@zeta.org.au) wrote:
>: But you can do this anyway, with something like the Alpha
>: architecture, provided you have enough registers to store the
>: intermediate results of both branches. You just go ahead and
>: compute both sides of the branch, and at the point where you
>: know that your original condition will have been resolved, you
>: ditch one half or the other. That could be with a conditional
>: move if only one value is involved, or a branch. I'm afraid
>: that I don't see how predication helps at all, really.
>:
>
>I am by no means an expert on predication, but I think that I can
>answer this.
>
>The method you propose will not work if there are instructions on
>the speculative path that could cause traps or exceptions. I don't
>know about Alpha, but on x86, there are many instructions that can
>produce exceptions. This makes it very difficult for the compiler
>to insert optimizations involving a conditional move.
on a typical risc chip running floating point code with exceptions
enabled, this could be a problem. for integer code, most alu-type
operations don't cause exceptions. for integer instructions which
can cause exceptions, you'd need an extra cmov to move in a safe
operand when the instruction is on the "wrong path" (e.g., cmov a 1
as the divisor when a divide isn't supposed to be done). this, of
course, makes the code even bigger. another solution is to add
non-faulting versions of instructions and demand software check the
validity of the data (e.g., the non-faulting loads in sparc-v9).
from what little i know of x86, it does sound like these sorts
of optimizations would be really, really hard. but with only
8 registers, it's probably pointless to begin with.
andrew essen
essen@computer.org
next prev parent reply other threads:[~1998-02-13 5:00 UTC|newest]
Thread overview: 131+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <6aj9it$fv0$1@rocky.jgk.org>
[not found] ` <zalmanEnF9FE.1K8@netcom.com>
[not found] ` <34CEB3E5.7376@EasyInternet.net>
1998-01-28 5:00 ` DEC RIP Rob Young
1998-01-28 5:00 ` Michael E. Austin
1998-01-28 5:00 ` Rob Rodgers
1998-01-28 5:00 ` Jonas Persson
1998-01-28 5:00 ` Greg Lindahl
1998-01-28 5:00 ` Rob Rodgers
1998-01-28 5:00 ` Bill Moyer
1998-01-28 5:00 ` Rob Rodgers
1998-01-28 5:00 ` jf mezei
1998-01-30 5:00 ` David Cherkus
1998-01-29 5:00 ` Douglas H. Borsom
1998-01-29 5:00 ` wetboy
1998-01-29 5:00 ` Anders Blicher Petersen
1998-02-01 5:00 ` Bill Moyer
1998-02-01 5:00 ` jf mezei
1998-02-02 5:00 ` Douglas H. Borsom
1998-02-02 5:00 ` Anders Blicher Petersen
1998-02-01 5:00 ` H.W. Stockman
1998-02-02 5:00 ` Peter Mardahl
1998-02-03 5:00 ` Sander Vesik
1998-02-02 5:00 ` Rob Young
1998-01-29 5:00 ` Greg Lindahl
1998-01-28 5:00 ` Greg Lindahl
1998-01-29 5:00 ` mathog
1998-01-29 5:00 ` the count
1998-01-29 5:00 ` Donald Dossa
1998-01-30 5:00 ` Greg Lindahl
1998-01-30 5:00 ` Ulrich Ruede
1998-01-30 5:00 ` Greg Lindahl
1998-01-30 5:00 ` H.W. Stockman
1998-02-12 5:00 ` Paul Jacobs
1998-01-29 5:00 ` wetboy
1998-01-29 5:00 ` Jeffrey J. Potoff
1998-01-29 5:00 ` Douglas H. Borsom
1998-01-30 5:00 ` Greg Lindahl
1998-02-02 5:00 ` wetboy
1998-01-29 5:00 ` Paul DeMone
1998-01-30 5:00 ` Stan Lass
1998-01-31 5:00 ` Paul DeMone
1998-01-31 5:00 ` Stan Lass
1998-02-05 5:00 ` mulp - cluster buster
1998-02-06 5:00 ` Paul DeMone
1998-02-06 5:00 ` jf mezei
1998-02-06 5:00 ` brianh
1998-02-06 5:00 ` Bill Moyer
1998-02-07 5:00 ` Terry Shannon
1998-02-10 5:00 ` James Dean
1998-02-14 5:00 ` bgInc. -- Choice is overrated
1998-02-09 5:00 ` Dan P.
1998-02-09 5:00 ` Burkhard Neidecker-Lutz
1998-02-10 5:00 ` Paul DeMone
1998-02-10 5:00 ` Andrew Essen
1998-02-10 5:00 ` Paul DeMone
1998-02-11 5:00 ` Anil Thomas Maliyekkel
1998-02-11 5:00 ` Andrew Reilly
1998-02-12 5:00 ` Zalman Stern
1998-02-11 5:00 ` Rob Young
1998-02-11 5:00 ` Paul DeMone
1998-02-11 5:00 ` Anil Thomas Maliyekkel
1998-02-11 5:00 ` Rob Young
1998-02-11 5:00 ` Zalman Stern
1998-02-12 5:00 ` brianh
1998-02-12 5:00 ` Zalman Stern
1998-02-13 5:00 ` brianh
1998-02-13 5:00 ` Anders Blicher Petersen
1998-02-14 5:00 ` hotlynx
1998-02-13 5:00 ` James Van Buskirk
1998-02-17 5:00 ` Dan P. ACT Computers
1998-02-24 5:00 ` Samuel S. Paik
1998-02-25 5:00 ` PJ
1998-02-13 5:00 ` Pete Dickerson
1998-02-13 5:00 ` Terry Shannon
1998-02-13 5:00 ` Tubby Zippergate
1998-02-14 5:00 ` Terry Shannon
1998-02-14 5:00 ` bgInc. -- Choice is overrated
1998-02-14 5:00 ` Pete Dickerson
1998-02-13 5:00 ` Anil Thomas Maliyekkel
1998-02-17 5:00 ` Dan P. ACT Computers
1998-02-18 5:00 ` David Cherkus
1998-02-19 5:00 ` Anil Thomas Maliyekkel
1998-02-19 5:00 ` Terry Shannon
[not found] ` <Stafford-1902981403210001@199.17.130.55>
1998-02-24 5:00 ` Philip J. Lewis
1998-02-24 5:00 ` mulp - cluster buster
1998-02-25 5:00 ` Pete Dickerson
1998-02-26 5:00 ` Paul DeMone
1998-02-11 5:00 ` Paul DeMone
1998-02-11 5:00 ` Greg Lindahl
1998-02-11 5:00 ` Paul DeMone
1998-02-13 5:00 ` Bernd Paysan
1998-02-14 5:00 ` Aaron Spink
1998-02-15 5:00 ` Craig Burley
1998-02-17 5:00 ` Dan P. ACT Computers
1998-02-16 5:00 ` Anil Thomas Maliyekkel
1998-02-16 5:00 ` Allen J. Baum
1998-02-16 5:00 ` Bill
1998-02-17 5:00 ` Andy Glew
1998-02-17 5:00 ` Paul DeMone
1998-02-17 5:00 ` Bill
1998-02-18 5:00 ` Allen J. Baum
1998-02-18 5:00 ` Zalman Stern
1998-02-18 5:00 ` Bernd Paysan
1998-02-19 5:00 ` Patrick Logan
1998-02-19 5:00 ` bgInc. -- Choice is overrated
1998-02-17 5:00 ` Randy Hawley
1998-02-11 5:00 ` Casper H.S. Dik - Network Security Engineer
1998-02-11 5:00 ` Death of the Rats
1998-02-12 5:00 ` Jonathan C Hall
1998-02-12 5:00 ` Reid Tatge
1998-02-12 5:00 ` Larry Meadows
1998-02-13 5:00 ` Andrew Essen [this message]
1998-02-01 5:00 Vampyre
-- strict thread matches above, loose matches on Subject: below --
1998-02-01 5:00 Vampyre
1998-02-01 5:00 Vampyre
1998-02-01 5:00 Vampyre
1998-02-17 5:00 Anil Thomas Maliyekkel
1998-02-24 5:00 ` mulp - cluster buster
1998-02-25 5:00 ` Anil Thomas Maliyekkel
1998-02-25 5:00 ` Larry Kilgallen
1998-02-25 5:00 ` Doug Siebert
1998-02-25 5:00 ` jf mezei
1998-02-26 5:00 ` Muriel Barstoned
1998-02-25 5:00 ` George Herbert
1998-02-25 5:00 ` Harry
1998-02-26 5:00 ` Ketil Z Malde
1998-02-27 5:00 ` J. Maynard Gelinas
1998-02-27 5:00 ` Roger Binns
1998-02-28 5:00 ` Kevin P. Neal
1998-03-01 5:00 ` Piercarlo Grandi
1998-03-01 5:00 ` H.W. Stockman
1998-03-04 5:00 ` Heikki Kultala
1998-03-04 5:00 ` Joe Buck
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