public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "sayle at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/28173] [4.0/4.1 regression] misses constant folding
Date: Sun, 18 Feb 2007 17:10:00 -0000	[thread overview]
Message-ID: <20070218171033.13715.qmail@sourceware.org> (raw)
In-Reply-To: <bug-28173-7674@http.gcc.gnu.org/bugzilla/>



------- Comment #4 from sayle at gcc dot gnu dot org  2007-02-18 17:10 -------
Subject: Bug 28173

Author: sayle
Date: Sun Feb 18 17:10:19 2007
New Revision: 122100

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122100
Log:

        Backport from mainline.
        PR middle-end/24427
        PR rtl-optimization/28173
        * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Transform (X&C1)|C2
        into (X,C2) if C1 is a subset of the bits of C2.  Transform
        (X&C1)|C2 into X|C2 if C1|C2 == ~0.  Canonicalize (X&C1)|C2 as
        (X&(C1&~C2))|C2.
        <BIT_AND_EXPR>: Canonicalize (X|C1)&C2 as (X&C2)|(C1&C2).

        * gcc.dg/tree-ssa/andor-1.c: New test case.


Added:
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/tree-ssa/andor-1.c
Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/fold-const.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


  parent reply	other threads:[~2007-02-18 17:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-26 20:10 [Bug regression/28173] New: 4.1.1 " ramana dot radhakrishnan at codito dot com
2006-06-28 23:34 ` [Bug regression/28173] [4.1 Regression] " pinskia at gcc dot gnu dot org
2006-09-13  3:39 ` [Bug rtl-optimization/28173] " bangerth at dealii dot org
2006-09-13  3:59 ` [Bug rtl-optimization/28173] [4.0/4.1 regression] " pinskia at gcc dot gnu dot org
2006-09-13  8:25 ` ebotcazou at gcc dot gnu dot org
2007-02-14  9:24 ` mmitchel at gcc dot gnu dot org
2007-02-18 17:10 ` sayle at gcc dot gnu dot org [this message]
2007-02-19  0:54 ` sayle at gcc dot gnu dot org
2007-03-08  1:55 ` roger at eyesopen dot com

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=20070218171033.13715.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).