public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/15458] Combine ~ and ^.
       [not found] <bug-15458-5009@http.gcc.gnu.org/bugzilla/>
@ 2005-11-30 17:32 ` pinskia at gcc dot gnu dot org
  2005-11-30 17:41 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-30 17:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2005-11-30 17:32 -------
Actually it is better for ~(a ^ CST) to come out as a ^ ~CST.

Right now we actually already implement ~(a^CST) as a ^ ~CST.  So we need just
to implement (~a) ^ CST as a ^ ~CST.  In fact this is what simplify_rtx does.


-- 


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


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

* [Bug tree-optimization/15458] Combine ~ and ^.
       [not found] <bug-15458-5009@http.gcc.gnu.org/bugzilla/>
  2005-11-30 17:32 ` [Bug tree-optimization/15458] Combine ~ and ^ pinskia at gcc dot gnu dot org
@ 2005-11-30 17:41 ` pinskia at gcc dot gnu dot org
  2005-12-04  4:27 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-30 17:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2005-11-30 17:41 -------
~(a^CST) is done in fold_unary with the comment of:
/* Convert ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify.  */


Only (~a^~b) is simplified.  That can be expanded to:
(~a^b) if ~b simplifies, simplify the expression.
likewise for (a^~b) (if ~a simplifies, simplify the expression).

I am going to implement this.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug tree-optimization/15458] Combine ~ and ^.
       [not found] <bug-15458-5009@http.gcc.gnu.org/bugzilla/>
  2005-11-30 17:32 ` [Bug tree-optimization/15458] Combine ~ and ^ pinskia at gcc dot gnu dot org
  2005-11-30 17:41 ` pinskia at gcc dot gnu dot org
@ 2005-12-04  4:27 ` pinskia at gcc dot gnu dot org
  2006-10-29 17:51 ` sayle at gcc dot gnu dot org
  2006-10-29 20:27 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-04  4:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2005-12-04 04:27 -------
I am no longer going to fix the fold issue, it is too much hasle to get this
fixed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|pinskia at gcc dot gnu dot  |unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW


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


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

* [Bug tree-optimization/15458] Combine ~ and ^.
       [not found] <bug-15458-5009@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2005-12-04  4:27 ` pinskia at gcc dot gnu dot org
@ 2006-10-29 17:51 ` sayle at gcc dot gnu dot org
  2006-10-29 20:27 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 10+ messages in thread
From: sayle at gcc dot gnu dot org @ 2006-10-29 17:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from sayle at gcc dot gnu dot org  2006-10-29 17:51 -------
Subject: Bug 15458

Author: sayle
Date: Sun Oct 29 17:51:07 2006
New Revision: 118152

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

        PR tree-optimization/15458
        * fold-const.c (fold_binary): Optimize ~X ^ C as X ^ ~C, where C
        is a constant.

        * gcc.dg/fold-xornot-1.c: New test case.


Added:
    trunk/gcc/testsuite/gcc.dg/fold-xornot-1.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug tree-optimization/15458] Combine ~ and ^.
       [not found] <bug-15458-5009@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2006-10-29 17:51 ` sayle at gcc dot gnu dot org
@ 2006-10-29 20:27 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-29 20:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at gcc dot gnu dot org  2006-10-29 20:27 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


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


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

* [Bug tree-optimization/15458] Combine ~ and ^.
       [not found] <bug-15458-4@http.gcc.gnu.org/bugzilla/>
@ 2014-10-31  4:02 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-10-31  4:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15458
Bug 15458 depends on bug 15459, which changed state.

Bug 15459 Summary: [meta-bug] there should be a tree combiner like the rtl one
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15459

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED


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

* [Bug tree-optimization/15458] Combine ~ and ^.
  2004-05-16  1:55 [Bug tree-optimization/15458] New: " kazu at cs dot umass dot edu
                   ` (2 preceding siblings ...)
  2004-05-17 18:53 ` pinskia at gcc dot gnu dot org
@ 2004-06-02 21:14 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-02 21:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-02 21:14 -------
I should note that the RTL level does this optimization.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |15785
           Keywords|                            |TREE


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


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

* [Bug tree-optimization/15458] Combine ~ and ^.
  2004-05-16  1:55 [Bug tree-optimization/15458] New: " kazu at cs dot umass dot edu
  2004-05-16 10:02 ` [Bug tree-optimization/15458] " pinskia at gcc dot gnu dot org
  2004-05-16 10:49 ` pinskia at gcc dot gnu dot org
@ 2004-05-17 18:53 ` pinskia at gcc dot gnu dot org
  2004-06-02 21:14 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-17 18:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-17 02:05 -------
Will be fix by PR 15459 when fold is able to optimize ~(a<D1109>_1 ^ 65535) into 
~a<D1104>_1 ^ 65535

-- 


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


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

* [Bug tree-optimization/15458] Combine ~ and ^.
  2004-05-16  1:55 [Bug tree-optimization/15458] New: " kazu at cs dot umass dot edu
  2004-05-16 10:02 ` [Bug tree-optimization/15458] " pinskia at gcc dot gnu dot org
@ 2004-05-16 10:49 ` pinskia at gcc dot gnu dot org
  2004-05-17 18:53 ` pinskia at gcc dot gnu dot org
  2004-06-02 21:14 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-16 10:49 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |15459


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


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

* [Bug tree-optimization/15458] Combine ~ and ^.
  2004-05-16  1:55 [Bug tree-optimization/15458] New: " kazu at cs dot umass dot edu
@ 2004-05-16 10:02 ` pinskia at gcc dot gnu dot org
  2004-05-16 10:49 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-16 10:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-15 12:23 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-15 12:23:00
               date|                            |


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


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

end of thread, other threads:[~2014-10-31  4:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-15458-5009@http.gcc.gnu.org/bugzilla/>
2005-11-30 17:32 ` [Bug tree-optimization/15458] Combine ~ and ^ pinskia at gcc dot gnu dot org
2005-11-30 17:41 ` pinskia at gcc dot gnu dot org
2005-12-04  4:27 ` pinskia at gcc dot gnu dot org
2006-10-29 17:51 ` sayle at gcc dot gnu dot org
2006-10-29 20:27 ` pinskia at gcc dot gnu dot org
     [not found] <bug-15458-4@http.gcc.gnu.org/bugzilla/>
2014-10-31  4:02 ` pinskia at gcc dot gnu.org
2004-05-16  1:55 [Bug tree-optimization/15458] New: " kazu at cs dot umass dot edu
2004-05-16 10:02 ` [Bug tree-optimization/15458] " pinskia at gcc dot gnu dot org
2004-05-16 10:49 ` pinskia at gcc dot gnu dot org
2004-05-17 18:53 ` pinskia at gcc dot gnu dot org
2004-06-02 21:14 ` pinskia at gcc dot gnu 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).