From: Michael Hayes <m.hayes@elec.canterbury.ac.nz>
To: law@cygnus.com
Cc: Michael Hayes <m.hayes@elec.canterbury.ac.nz>, egcs@cygnus.com
Subject: Re: Ternary operator in loop condition
Date: Sun, 31 Jan 1999 23:58:00 -0000 [thread overview]
Message-ID: <13977.33688.460065.141289@ongaonga.elec.canterbury.ac.nz> (raw)
In-Reply-To: <18943.916017460@hurl.cygnus.com>
> It may be something that could be caught by gcse/pre once alias analysis is
> tied into that pass.
How about a case where there is no aliasing. What mods are required
for the gcse/pre pass to hoist "(bar ? 4 : 8)" from the loop in the
following example?
static char fred[100];
void foo(bar)
int bar;
{
int i;
for (i = 0; i < (bar ? 4 : 8); i++)
fred[i] = 0;
}
Michael.
next prev parent reply other threads:[~1999-01-31 23:58 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-31 23:58 Michael Hayes
1999-01-31 23:58 ` Jeffrey A Law
1999-01-31 23:58 ` Michael Hayes
1999-01-31 23:58 ` Michael Hayes
1999-01-31 23:58 ` Jeffrey A Law
1999-01-31 23:58 ` Michael Hayes
1999-01-31 23:58 ` Jeffrey A Law
1999-01-31 23:58 ` Michael Hayes
1999-01-31 23:58 ` Unswitching [Was: Re: Ternary operator in loop condition] Jeffrey A Law
1999-01-31 23:58 ` Unswitching Michael Hayes
1999-01-31 23:58 ` Unswitching Jeffrey A Law
1999-01-31 23:58 ` cmov [Re: Unswitching] Richard Henderson
1999-01-31 23:58 ` Ternary operator in loop condition Jeffrey A Law
1999-01-31 23:58 ` Michael Hayes [this message]
1999-01-31 23:58 ` Jeffrey A Law
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=13977.33688.460065.141289@ongaonga.elec.canterbury.ac.nz \
--to=m.hayes@elec.canterbury.ac.nz \
--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).