From: "Orn E. Hansen" <oe.hansen@oehansen.pp.se>
To: Toon Moene <toon@moene.indiv.nluug.nl>
Cc: egcs@cygnus.com
Subject: Re: Fortran: The Road Ahead.
Date: Sun, 07 Dec 1997 17:04:00 -0000 [thread overview]
Message-ID: <ML-3.3.881542409.2777.oehansen@oehansen.pp.se> (raw)
In-Reply-To: <9712071846.AA10352@moene.indiv.nluug.nl>
> do i = 1, n
> <body1>
> if (lcond) then
> <body2>
> else
> <body3>
> endif
> <body4>
> enddo
You could select variant I, if lcond will always yield the same
condition for any i. And II if <body1> and <body4> are independant
and not products of <body2> or <body4>. The save goes from O(4n)
downto O(3n + 1), which can be great for a large n (or expensive
lcond). But most times, <body4> will use a product of in-loop
condition of <body2> or <body4> (hence it's position), making a
transformation impossible.
----------------------------------------------------------------------------
Orn Einar Hansen oe.hansen@oehansen.pp.se
oehansen@daimi.aau.dk
voice+fax; +46 035 217194
next prev parent reply other threads:[~1997-12-07 17:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-12-07 6:24 Toon Moene
1997-12-07 8:18 ` Joel Sherrill
1997-12-07 8:57 ` Jeffrey A Law
1997-12-07 10:54 ` Toon Moene
1997-12-07 17:04 ` Orn E. Hansen [this message]
1997-12-08 11:06 ` Paul Koning
1997-12-12 9:19 ` giv combination patch Richard Henderson
1997-12-13 10:54 ` Toon Moene
1997-12-13 21:14 ` Richard Henderson
1997-12-14 3:46 ` giv combination patch mark 2 Richard Henderson
1997-12-14 11:32 ` Toon Moene
1997-12-14 11:56 ` Richard Henderson
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=ML-3.3.881542409.2777.oehansen@oehansen.pp.se \
--to=oe.hansen@oehansen.pp.se \
--cc=egcs@cygnus.com \
--cc=toon@moene.indiv.nluug.nl \
/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).