public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Michael P. Hayes" <michaelh@ongaonga.chch.cri.nz>
To: law@cygnus.com
Cc: "Michael P. Hayes" <michaelh@ongaonga.chch.cri.nz>,
	gcc2@cygnus.com, egcs@cygnus.com
Subject: Re: Jump optimisation patches
Date: Mon, 02 Feb 1998 15:13:00 -0000	[thread overview]
Message-ID: <199802022109.KAA10442@ongaonga.chch.cri.nz> (raw)
In-Reply-To: <29444.886441074@hurl.cygnus.com>

Jeffrey A Law writes:
 > Don't you also need one in the conditional for this optimization:
 > 
 >          /* If branches are expensive, convert
 >                 if (foo) bar++;    to    bar += (foo != 0);
 >              and similarly for "bar--;"
 > 

I don't think so.  It appears that this optimisation is caught
by the more general test (circa line 1000 in jump.c) for targets
that don't have CC0.  The patches I submitted were to fix a problem
for those targets where an insn was moved into a place where
it clobbered something required by the following insn (usually
the contents of the CC register).

      reply	other threads:[~1998-02-02 15:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199711050316.QAA19266@ongaonga.chch.cri.nz>
1998-02-02  1:09 ` Jeffrey A Law
1998-02-02 11:43   ` Michael P. Hayes
1998-02-02 10:32     ` Jeffrey A Law
1998-02-02 15:13       ` Michael P. Hayes [this message]

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=199802022109.KAA10442@ongaonga.chch.cri.nz \
    --to=michaelh@ongaonga.chch.cri.nz \
    --cc=egcs@cygnus.com \
    --cc=gcc2@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).