public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/30172]  New: Operations with partly constant complex values not folded
@ 2006-12-12 12:27 rguenth at gcc dot gnu dot org
  2006-12-13  7:15 ` [Bug middle-end/30172] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-12-12 12:27 UTC (permalink / raw)
  To: gcc-bugs

We do not fold for example

  __complex__ ( x, 0 ) * __complex__ ( 0, 1 )

or

  __complex__ ( x, 0 ) + __complex__ ( 0, y )


I have a partial patch.


-- 
           Summary: Operations with partly constant complex values not
                    folded
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: middle-end
        AssignedTo: rguenth at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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


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

* [Bug middle-end/30172] Operations with partly constant complex values not folded
  2006-12-12 12:27 [Bug middle-end/30172] New: Operations with partly constant complex values not folded rguenth at gcc dot gnu dot org
@ 2006-12-13  7:15 ` pinskia at gcc dot gnu dot org
  2006-12-13 13:31 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-13  7:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-12-13 07:15 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |19987
              nThis|                            |
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-12-13 07:15:17
               date|                            |


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


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

* [Bug middle-end/30172] Operations with partly constant complex values not folded
  2006-12-12 12:27 [Bug middle-end/30172] New: Operations with partly constant complex values not folded rguenth at gcc dot gnu dot org
  2006-12-13  7:15 ` [Bug middle-end/30172] " pinskia at gcc dot gnu dot org
@ 2006-12-13 13:31 ` rguenth at gcc dot gnu dot org
  2006-12-13 16:22 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-12-13 13:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2006-12-13 13:31 -------
__complex__ ( x, y ) * I  == __complex__ ( -y,  x )
__complex__ ( x, y ) * -I == __complex__ (  y, -x )

but only if we don't honor NaNs or signed zeros.


-- 


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


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

* [Bug middle-end/30172] Operations with partly constant complex values not folded
  2006-12-12 12:27 [Bug middle-end/30172] New: Operations with partly constant complex values not folded rguenth at gcc dot gnu dot org
  2006-12-13  7:15 ` [Bug middle-end/30172] " pinskia at gcc dot gnu dot org
  2006-12-13 13:31 ` rguenth at gcc dot gnu dot org
@ 2006-12-13 16:22 ` rguenth at gcc dot gnu dot org
  2006-12-14  4:00 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-12-13 16:22 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2006-
                   |                            |12/msg00954.html
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-12-13 07:15:17         |2006-12-13 16:22:43
               date|                            |


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


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

* [Bug middle-end/30172] Operations with partly constant complex values not folded
  2006-12-12 12:27 [Bug middle-end/30172] New: Operations with partly constant complex values not folded rguenth at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-12-13 16:22 ` rguenth at gcc dot gnu dot org
@ 2006-12-14  4:00 ` pinskia at gcc dot gnu dot org
  2006-12-14 13:12 ` rguenth at gcc dot gnu dot org
  2007-01-10 19:16 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-14  4:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-12-14 03:59 -------
(In reply to comment #2)
> but only if we don't honor NaNs or signed zeros.

Some of these optimizations can be done even without worrying about NaNs
because of -fcx-limited-range .


-- 


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


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

* [Bug middle-end/30172] Operations with partly constant complex values not folded
  2006-12-12 12:27 [Bug middle-end/30172] New: Operations with partly constant complex values not folded rguenth at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-12-14  4:00 ` pinskia at gcc dot gnu dot org
@ 2006-12-14 13:12 ` rguenth at gcc dot gnu dot org
  2007-01-10 19:16 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-12-14 13:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2006-12-14 13:12 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

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


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


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

* [Bug middle-end/30172] Operations with partly constant complex values not folded
  2006-12-12 12:27 [Bug middle-end/30172] New: Operations with partly constant complex values not folded rguenth at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-12-14 13:12 ` rguenth at gcc dot gnu dot org
@ 2007-01-10 19:16 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-10 19:16 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.0


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


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

end of thread, other threads:[~2007-01-10 19:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-12 12:27 [Bug middle-end/30172] New: Operations with partly constant complex values not folded rguenth at gcc dot gnu dot org
2006-12-13  7:15 ` [Bug middle-end/30172] " pinskia at gcc dot gnu dot org
2006-12-13 13:31 ` rguenth at gcc dot gnu dot org
2006-12-13 16:22 ` rguenth at gcc dot gnu dot org
2006-12-14  4:00 ` pinskia at gcc dot gnu dot org
2006-12-14 13:12 ` rguenth at gcc dot gnu dot org
2007-01-10 19:16 ` 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).