public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/13952] New: [tree-ssa] SRA does not work for structs containing arrays
@ 2004-01-31 21:10 dann at godzilla dot ics dot uci dot edu
  2004-01-31 21:16 ` [Bug optimization/13952] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: dann at godzilla dot ics dot uci dot edu @ 2004-01-31 21:10 UTC (permalink / raw)
  To: gcc-bugs

SRA does not work for structs that contain an array. 
This is a known issue, filed so that it can be tracked. 

/* { dg-do compile } */ 
/* { dg-options "-O1 -fdump-tree-optimized" } */

void link_error (void);

typedef struct teststruct
{
  double d;
  char f1;
  int arr[15];
} teststruct;

void
copystruct5 (teststruct param)
{
  teststruct local;
  param.f1 = 0;
  local = param;
  if (local.f1 != 0)
    link_error ();
}
/* There should be no reference to link_error. */
/* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */

-- 
           Summary: [tree-ssa] SRA does not work for structs containing
                    arrays
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dann at godzilla dot ics dot uci dot edu
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug optimization/13952] [tree-ssa] SRA does not work for structs containing arrays
  2004-01-31 21:10 [Bug optimization/13952] New: [tree-ssa] SRA does not work for structs containing arrays dann at godzilla dot ics dot uci dot edu
@ 2004-01-31 21:16 ` pinskia at gcc dot gnu dot org
  2004-05-24 14:51 ` [Bug tree-optimization/13952] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-31 21:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-31 21:16 -------
Confirmed from *.t24.sra:
Cannot scalarize variable param because it contains an aggregate type field, arr
Cannot scalarize variable local because it contains an aggregate type field, arr

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |pessimizes-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-31 21:16:39
               date|                            |
   Target Milestone|---                         |tree-ssa


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


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

* [Bug tree-optimization/13952] [tree-ssa] SRA does not work for structs containing arrays
  2004-01-31 21:10 [Bug optimization/13952] New: [tree-ssa] SRA does not work for structs containing arrays dann at godzilla dot ics dot uci dot edu
  2004-01-31 21:16 ` [Bug optimization/13952] " pinskia at gcc dot gnu dot org
@ 2004-05-24 14:51 ` pinskia at gcc dot gnu dot org
  2004-06-29 17:35 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-24 14:51 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.5.0                       |---


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


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

* [Bug tree-optimization/13952] [tree-ssa] SRA does not work for structs containing arrays
  2004-01-31 21:10 [Bug optimization/13952] New: [tree-ssa] SRA does not work for structs containing arrays dann at godzilla dot ics dot uci dot edu
  2004-01-31 21:16 ` [Bug optimization/13952] " pinskia at gcc dot gnu dot org
  2004-05-24 14:51 ` [Bug tree-optimization/13952] " pinskia at gcc dot gnu dot org
@ 2004-06-29 17:35 ` pinskia at gcc dot gnu dot org
  2004-06-29 21:06 ` rth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-29 17:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-29 17:23 -------
Just like 13953:
  param$f1_7 = param.f1;
  param$f1_8 = 0;
  param.f1 = param$f1_8;
  local = param;
  local$f1_10 = local.f1;
  T.0_4 = local$f1_10;

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2004-03-03 06:29:50         |2004-06-29 17:23:56
               date|                            |


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


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

* [Bug tree-optimization/13952] [tree-ssa] SRA does not work for structs containing arrays
  2004-01-31 21:10 [Bug optimization/13952] New: [tree-ssa] SRA does not work for structs containing arrays dann at godzilla dot ics dot uci dot edu
                   ` (2 preceding siblings ...)
  2004-06-29 17:35 ` pinskia at gcc dot gnu dot org
@ 2004-06-29 21:06 ` rth at gcc dot gnu dot org
  2004-06-29 21:09 ` rth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 10+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-06-29 21:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rth at gcc dot gnu dot org  2004-06-29 21:05 -------
Would be fixed by addressing the ??? in scalarize_copy wrt use_block_copy.

-- 


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


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

* [Bug tree-optimization/13952] [tree-ssa] SRA does not work for structs containing arrays
  2004-01-31 21:10 [Bug optimization/13952] New: [tree-ssa] SRA does not work for structs containing arrays dann at godzilla dot ics dot uci dot edu
                   ` (3 preceding siblings ...)
  2004-06-29 21:06 ` rth at gcc dot gnu dot org
@ 2004-06-29 21:09 ` rth at gcc dot gnu dot org
  2004-12-16  7:32 ` rth at gcc dot gnu dot org
  2005-03-18 10:14 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 10+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-06-29 21:09 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=13952


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

* [Bug tree-optimization/13952] [tree-ssa] SRA does not work for structs containing arrays
  2004-01-31 21:10 [Bug optimization/13952] New: [tree-ssa] SRA does not work for structs containing arrays dann at godzilla dot ics dot uci dot edu
                   ` (4 preceding siblings ...)
  2004-06-29 21:09 ` rth at gcc dot gnu dot org
@ 2004-12-16  7:32 ` rth at gcc dot gnu dot org
  2005-03-18 10:14 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 10+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-12-16  7:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rth at gcc dot gnu dot org  2004-12-16 07:31 -------
Not working on it.

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


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


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

* [Bug tree-optimization/13952] [tree-ssa] SRA does not work for structs containing arrays
  2004-01-31 21:10 [Bug optimization/13952] New: [tree-ssa] SRA does not work for structs containing arrays dann at godzilla dot ics dot uci dot edu
                   ` (5 preceding siblings ...)
  2004-12-16  7:32 ` rth at gcc dot gnu dot org
@ 2005-03-18 10:14 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-18 10:14 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
   Last reconfirmed|2004-09-28 03:34:06         |2005-03-18 10:10:08
               date|                            |


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


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

* [Bug tree-optimization/13952] [tree-ssa] SRA does not work for structs containing arrays
       [not found] <bug-13952-1008@http.gcc.gnu.org/bugzilla/>
  2010-07-21 21:00 ` steven at gcc dot gnu dot org
@ 2010-07-21 21:43 ` rguenth at gcc dot gnu dot org
  1 sibling, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-21 21:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2010-07-21 21:43 -------
Even with 4.5.0.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.6.0                       |4.5.0


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


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

* [Bug tree-optimization/13952] [tree-ssa] SRA does not work for structs containing arrays
       [not found] <bug-13952-1008@http.gcc.gnu.org/bugzilla/>
@ 2010-07-21 21:00 ` steven at gcc dot gnu dot org
  2010-07-21 21:43 ` rguenth at gcc dot gnu dot org
  1 sibling, 0 replies; 10+ messages in thread
From: steven at gcc dot gnu dot org @ 2010-07-21 21:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from steven at gcc dot gnu dot org  2010-07-21 21:00 -------
Optimizes to an empty function for me with r162374.
Probably thanks to Martin's SRA rewrite.


-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jamborm at gcc dot gnu dot
                   |                            |org
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.6.0


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


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

end of thread, other threads:[~2010-07-21 21:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-31 21:10 [Bug optimization/13952] New: [tree-ssa] SRA does not work for structs containing arrays dann at godzilla dot ics dot uci dot edu
2004-01-31 21:16 ` [Bug optimization/13952] " pinskia at gcc dot gnu dot org
2004-05-24 14:51 ` [Bug tree-optimization/13952] " pinskia at gcc dot gnu dot org
2004-06-29 17:35 ` pinskia at gcc dot gnu dot org
2004-06-29 21:06 ` rth at gcc dot gnu dot org
2004-06-29 21:09 ` rth at gcc dot gnu dot org
2004-12-16  7:32 ` rth at gcc dot gnu dot org
2005-03-18 10:14 ` pinskia at gcc dot gnu dot org
     [not found] <bug-13952-1008@http.gcc.gnu.org/bugzilla/>
2010-07-21 21:00 ` steven at gcc dot gnu dot org
2010-07-21 21:43 ` rguenth 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).