public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/23672] New: Fold does not fold  (a^b)^a to b
@ 2005-09-01  2:27 pinskia at gcc dot gnu dot org
  2005-09-17  2:12 ` [Bug middle-end/23672] " pinskia at gcc dot gnu dot org
  2005-09-17  2:44 ` dberlin at dberlin dot org
  0 siblings, 2 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-01  2:27 UTC (permalink / raw)
  To: gcc-bugs

These two functions should be the same at the tree level but are not:
int f(int a, int b)
{
  return (a^b)^a;
}
int f1(int a, int b)
{
  return b;
}

---
Another one from LLVM.

-- 
           Summary: Fold does not fold  (a^b)^a to b
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: missed-optimization, TREE
          Severity: enhancement
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
OtherBugsDependingO 19986
             nThis:


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug middle-end/23672] Fold does not fold  (a^b)^a to b
  2005-09-01  2:27 [Bug middle-end/23672] New: Fold does not fold (a^b)^a to b pinskia at gcc dot gnu dot org
@ 2005-09-17  2:12 ` pinskia at gcc dot gnu dot org
  2005-09-17  2:44   ` Daniel Berlin
  2005-09-17  2:44 ` dberlin at dberlin dot org
  1 sibling, 1 reply; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-17  2:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-17 02:12 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-09-17 02:12:18
               date|                            |


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bug middle-end/23672] Fold does not fold  (a^b)^a to b
  2005-09-17  2:12 ` [Bug middle-end/23672] " pinskia at gcc dot gnu dot org
@ 2005-09-17  2:44   ` Daniel Berlin
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Berlin @ 2005-09-17  2:44 UTC (permalink / raw)
  To: gcc-bugzilla; +Cc: gcc-bugs

On Sat, 2005-09-17 at 02:12 +0000, pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-17 02:12 -------
> Confirmed.
> 

The new reassoc should take care of this



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug middle-end/23672] Fold does not fold  (a^b)^a to b
  2005-09-01  2:27 [Bug middle-end/23672] New: Fold does not fold (a^b)^a to b pinskia at gcc dot gnu dot org
  2005-09-17  2:12 ` [Bug middle-end/23672] " pinskia at gcc dot gnu dot org
@ 2005-09-17  2:44 ` dberlin at dberlin dot org
  1 sibling, 0 replies; 4+ messages in thread
From: dberlin at dberlin dot org @ 2005-09-17  2:44 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dberlin at gcc dot gnu dot org  2005-09-17 02:44 -------
Subject: Re:  Fold does not fold  (a^b)^a to b

On Sat, 2005-09-17 at 02:12 +0000, pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-17 02:12 -------
> Confirmed.
> 

The new reassoc should take care of this




-- 


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-09-17  2:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-01  2:27 [Bug middle-end/23672] New: Fold does not fold (a^b)^a to b pinskia at gcc dot gnu dot org
2005-09-17  2:12 ` [Bug middle-end/23672] " pinskia at gcc dot gnu dot org
2005-09-17  2:44   ` Daniel Berlin
2005-09-17  2:44 ` dberlin at dberlin dot org

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