public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "kazu at cs dot umass dot edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/14752] [tree-ssa] "~a" should be changed to "a" if used in the condition of an if statement
Date: Sat, 15 May 2004 23:36:00 -0000	[thread overview]
Message-ID: <20040515115532.13123.qmail@sourceware.org> (raw)
In-Reply-To: <20040327144535.14752.kazu@cs.umass.edu>


------- Additional Comments From kazu at cs dot umass dot edu  2004-05-15 11:55 -------
As of today, the last tree-ssa form looks like:

;; Function foo (foo)

foo (a)
{
  _Bool T.2;
  unsigned int T.1;
  unsigned int T.0;

<bb 0>:
  T.0_2 = a_1 >> 2;
  T.1_3 = T.0_2 & 1;
  if (T.1_3 != 0) goto <L0>; else goto <L1>;

<L0>:;
  bar () [tail call];

<L1>:;
  return;

}



;; Function baz (baz)

baz (a)
{
  _Bool T.6;
  unsigned int T.5;
  unsigned int T.4;
  unsigned int T.3;

<bb 0>:
  T.3_2 = ~a_1;
  T.4_3 = T.3_2 >> 2;
  T.5_4 = T.4_3 & 1;
  if (T.5_4 != 0) goto <L0>; else goto <L1>;

<L0>:;
  bar () [tail call];

<L1>:;
  return;

}

Note that the casts to _Bool are gone.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14752


  parent reply	other threads:[~2004-05-15 11:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-27 14:45 [Bug optimization/14752] New: " kazu at cs dot umass dot edu
2004-03-27 15:45 ` [Bug optimization/14752] " pinskia at gcc dot gnu dot org
2004-04-04  7:34 ` pinskia at gcc dot gnu dot org
2004-04-05 23:36 ` kazu at cs dot umass dot edu
2004-05-15 23:36 ` kazu at cs dot umass dot edu [this message]
2004-05-24 20:31 ` [Bug tree-optimization/14752] " pinskia at gcc dot gnu dot org
2005-02-18 12:31 ` phython at gcc dot gnu dot org
     [not found] <bug-14752-5009@http.gcc.gnu.org/bugzilla/>
2006-02-28 18:24 ` pinskia at gcc dot gnu dot org
2006-02-28 18:28 ` patchapp at dberlin dot org
2006-02-28 21:40 ` sayle at gcc dot gnu dot org
2006-02-28 22:20 ` pinskia at gcc dot gnu dot org
     [not found] <bug-14752-4@http.gcc.gnu.org/bugzilla/>
2014-10-31  4:02 ` pinskia at gcc dot gnu.org

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=20040515115532.13123.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /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).