public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/19042] New: Complex types are not SRA all the time.
@ 2004-12-16 19:27 pinskia at gcc dot gnu dot org
  2004-12-16 19:32 ` [Bug tree-optimization/19042] " pinskia at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-16 19:27 UTC (permalink / raw)
  To: gcc-bugs

I decided to look into sixtrack and noticed this.  I will add a small testcase after I reduce the problem.

-- 
           Summary: Complex types are not SRA all the time.
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: minor
          Priority: P2
         Component: tree-optimization
        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
GCC target triplet: powerpc-darwin


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


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

* [Bug tree-optimization/19042] Complex types are not SRA all the time.
  2004-12-16 19:27 [Bug tree-optimization/19042] New: Complex types are not SRA all the time pinskia at gcc dot gnu dot org
@ 2004-12-16 19:32 ` pinskia at gcc dot gnu dot org
  2004-12-16 20:30 ` pinskia at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-16 19:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-16 19:32 -------
Note we end up with:
  D.770 = COMPLEX_EXPR <D.768 - 4.0e+0, 0.0>;
  ca1$imag = IMAGPART_EXPR <D.770>;
  ca1$real = REALPART_EXPR <D.770>;

in .t66.final_cleanup


-- 


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


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

* [Bug tree-optimization/19042] Complex types are not SRA all the time.
  2004-12-16 19:27 [Bug tree-optimization/19042] New: Complex types are not SRA all the time pinskia at gcc dot gnu dot org
  2004-12-16 19:32 ` [Bug tree-optimization/19042] " pinskia at gcc dot gnu dot org
@ 2004-12-16 20:30 ` pinskia at gcc dot gnu dot org
  2004-12-16 20:38 ` pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-16 20:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-16 20:30 -------
Here is the reduced testcase (fortran):
      COMMON TA(6,6)                                
      COMPLEX*16 CA1,CA2,CLAM2                                                                    
      CA2=DCMPLX(F2,ZERO)                                                       
      CA2=SQRT(CA2)                                                              
      CLAM2=(EGWG2+CA2)/TWO                      
      DO 40 I=1,4                                                               
      TA(I,3)=DREAL(CLAM2)                                                       
   40 CONTINUE                                                                  
      RETURN                                                                                                                                   
      END  

-- 


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


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

* [Bug tree-optimization/19042] Complex types are not SRA all the time.
  2004-12-16 19:27 [Bug tree-optimization/19042] New: Complex types are not SRA all the time pinskia at gcc dot gnu dot org
  2004-12-16 19:32 ` [Bug tree-optimization/19042] " pinskia at gcc dot gnu dot org
  2004-12-16 20:30 ` pinskia at gcc dot gnu dot org
@ 2004-12-16 20:38 ` pinskia at gcc dot gnu dot org
  2004-12-16 20:40 ` pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-16 20:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-16 20:38 -------
Here it is further reduced:
      COMMON TA(6,6)                                
      COMPLEX*16 CA2,CLAM2                                                                    

      CA2=DCMPLX(F2,ZERO)                                                       
      CLAM2=(EGWG2+CA2)/TWO                      

      DO 40 I=1,4                                                               
      TA(I,3)=DREAL(CLAM2)                                                       
   40 CONTINUE                                                                  
                                                                                        
      RETURN                                                                                                                                   
      END                                                                       


-- 


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


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

* [Bug tree-optimization/19042] Complex types are not SRA all the time.
  2004-12-16 19:27 [Bug tree-optimization/19042] New: Complex types are not SRA all the time pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-12-16 20:38 ` pinskia at gcc dot gnu dot org
@ 2004-12-16 20:40 ` pinskia at gcc dot gnu dot org
  2004-12-16 20:49 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-16 20:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-16 20:40 -------
Here it is further reduced:
      COMMON TA(6,6)                                
      COMPLEX*16 CA2,CLAM2                                                                    

      CLAM2=DCMPLX(a,2.0)                                                       

      DO 40 I=1,4                                                               
      TA(I,3)=DREAL(CLAM2)                                                       
   40 CONTINUE                                                                  
                                                                                        
      RETURN                                                                                                                                   
      END                                                                       

-- 


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


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

* [Bug tree-optimization/19042] Complex types are not SRA all the time.
  2004-12-16 19:27 [Bug tree-optimization/19042] New: Complex types are not SRA all the time pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-12-16 20:40 ` pinskia at gcc dot gnu dot org
@ 2004-12-16 20:49 ` pinskia at gcc dot gnu dot org
  2004-12-16 21:03 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-16 20:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-16 20:49 -------
This is most likely a dup of bug 18268.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |18268


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


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

* [Bug tree-optimization/19042] Complex types are not SRA all the time.
  2004-12-16 19:27 [Bug tree-optimization/19042] New: Complex types are not SRA all the time pinskia at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-12-16 20:49 ` pinskia at gcc dot gnu dot org
@ 2004-12-16 21:03 ` pinskia at gcc dot gnu dot org
  2004-12-16 22:59 ` dje at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-16 21:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-16 21:03 -------
And here is a testcase where we don't use an unitialized variable and no loops either:
      COMMON TA,A                                
      COMPLEX*16 CLAM2                                                                    
      CLAM2=DCMPLX(A,2.0)                                                       
      TA=DIMAG(CLAM2)
      RETURN                                                                                                                                   
      END

-- 


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


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

* [Bug tree-optimization/19042] Complex types are not SRA all the time.
  2004-12-16 19:27 [Bug tree-optimization/19042] New: Complex types are not SRA all the time pinskia at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-12-16 21:03 ` pinskia at gcc dot gnu dot org
@ 2004-12-16 22:59 ` dje at gcc dot gnu dot org
  2004-12-17 13:36 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dje at gcc dot gnu dot org @ 2004-12-16 22:59 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dje at gcc dot gnu dot org


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


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

* [Bug tree-optimization/19042] Complex types are not SRA all the time.
  2004-12-16 19:27 [Bug tree-optimization/19042] New: Complex types are not SRA all the time pinskia at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2004-12-16 22:59 ` dje at gcc dot gnu dot org
@ 2004-12-17 13:36 ` pinskia at gcc dot gnu dot org
  2004-12-17 13:38 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-17 13:36 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-12-17 13:36:10
               date|                            |


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


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

* [Bug tree-optimization/19042] Complex types are not SRA all the time.
  2004-12-16 19:27 [Bug tree-optimization/19042] New: Complex types are not SRA all the time pinskia at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2004-12-17 13:36 ` pinskia at gcc dot gnu dot org
@ 2004-12-17 13:38 ` pinskia at gcc dot gnu dot org
  2004-12-30 17:43 ` dje at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-17 13:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-17 13:38 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-12/msg01260.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


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

* [Bug tree-optimization/19042] Complex types are not SRA all the time.
  2004-12-16 19:27 [Bug tree-optimization/19042] New: Complex types are not SRA all the time pinskia at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2004-12-17 13:38 ` pinskia at gcc dot gnu dot org
@ 2004-12-30 17:43 ` dje at gcc dot gnu dot org
  2005-01-01  1:03 ` rth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dje at gcc dot gnu dot org @ 2004-12-30 17:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dje at gcc dot gnu dot org  2004-12-30 17:42 -------
The patch slightly improves a few SPEC testcases.

-- 


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


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

* [Bug tree-optimization/19042] Complex types are not SRA all the time.
  2004-12-16 19:27 [Bug tree-optimization/19042] New: Complex types are not SRA all the time pinskia at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2004-12-30 17:43 ` dje at gcc dot gnu dot org
@ 2005-01-01  1:03 ` rth at gcc dot gnu dot org
  2005-01-01  2:38 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-01-01  1:03 UTC (permalink / raw)
  To: gcc-bugs



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


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


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

* [Bug tree-optimization/19042] Complex types are not SRA all the time.
  2004-12-16 19:27 [Bug tree-optimization/19042] New: Complex types are not SRA all the time pinskia at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2005-01-01  1:03 ` rth at gcc dot gnu dot org
@ 2005-01-01  2:38 ` cvs-commit at gcc dot gnu dot org
  2005-01-01  2:42 ` rth at gcc dot gnu dot org
  2005-01-01  2:56 ` pinskia at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-01  2:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-01-01 02:38 -------
Subject: Bug 19042

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rth@gcc.gnu.org	2005-01-01 02:38:06

Modified files:
	gcc            : ChangeLog tree-sra.c 

Log message:
	PR tree-opt/19042
	* tree-sra.c (decide_block_copy): Force use_block_copy false
	for complex values.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6993&r2=2.6994
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-sra.c.diff?cvsroot=gcc&r1=2.48&r2=2.49



-- 


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


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

* [Bug tree-optimization/19042] Complex types are not SRA all the time.
  2004-12-16 19:27 [Bug tree-optimization/19042] New: Complex types are not SRA all the time pinskia at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2005-01-01  2:38 ` cvs-commit at gcc dot gnu dot org
@ 2005-01-01  2:42 ` rth at gcc dot gnu dot org
  2005-01-01  2:56 ` pinskia at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-01-01  2:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rth at gcc dot gnu dot org  2005-01-01 02:42 -------
Fixed.

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


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


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

* [Bug tree-optimization/19042] Complex types are not SRA all the time.
  2004-12-16 19:27 [Bug tree-optimization/19042] New: Complex types are not SRA all the time pinskia at gcc dot gnu dot org
                   ` (12 preceding siblings ...)
  2005-01-01  2:42 ` rth at gcc dot gnu dot org
@ 2005-01-01  2:56 ` pinskia at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-01  2:56 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.0


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


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

end of thread, other threads:[~2005-01-01  2:56 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-16 19:27 [Bug tree-optimization/19042] New: Complex types are not SRA all the time pinskia at gcc dot gnu dot org
2004-12-16 19:32 ` [Bug tree-optimization/19042] " pinskia at gcc dot gnu dot org
2004-12-16 20:30 ` pinskia at gcc dot gnu dot org
2004-12-16 20:38 ` pinskia at gcc dot gnu dot org
2004-12-16 20:40 ` pinskia at gcc dot gnu dot org
2004-12-16 20:49 ` pinskia at gcc dot gnu dot org
2004-12-16 21:03 ` pinskia at gcc dot gnu dot org
2004-12-16 22:59 ` dje at gcc dot gnu dot org
2004-12-17 13:36 ` pinskia at gcc dot gnu dot org
2004-12-17 13:38 ` pinskia at gcc dot gnu dot org
2004-12-30 17:43 ` dje at gcc dot gnu dot org
2005-01-01  1:03 ` rth at gcc dot gnu dot org
2005-01-01  2:38 ` cvs-commit at gcc dot gnu dot org
2005-01-01  2:42 ` rth at gcc dot gnu dot org
2005-01-01  2:56 ` 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).