public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/13953] New: [tree-ssa] SRA does not work for structs that contain a struct as a member
@ 2004-01-31 21:12 dann at godzilla dot ics dot uci dot edu
2004-01-31 21:18 ` [Bug optimization/13953] " pinskia at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: dann at godzilla dot ics dot uci dot edu @ 2004-01-31 21:12 UTC (permalink / raw)
To: gcc-bugs
SRA does not work for structs that contain a struct as a member.
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;
struct foo {
char f2;
} m;
} teststruct;
void
copystruct4 (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 that contain a
struct as a member
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=13953
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug optimization/13953] [tree-ssa] SRA does not work for structs that contain a struct as a member
2004-01-31 21:12 [Bug optimization/13953] New: [tree-ssa] SRA does not work for structs that contain a struct as a member dann at godzilla dot ics dot uci dot edu
@ 2004-01-31 21:18 ` pinskia at gcc dot gnu dot org
2004-05-24 16:37 ` [Bug tree-optimization/13953] " pinskia 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 @ 2004-01-31 21:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-31 21:18 -------
Confirmed (related to bug 13952) from *.t24.sra:
Cannot scalarize variable param because it contains an aggregate type field, m
Cannot scalarize variable local because it contains an aggregate type field, m
--
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:18:47
date| |
Target Milestone|--- |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13953
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/13953] [tree-ssa] SRA does not work for structs that contain a struct as a member
2004-01-31 21:12 [Bug optimization/13953] New: [tree-ssa] SRA does not work for structs that contain a struct as a member dann at godzilla dot ics dot uci dot edu
2004-01-31 21:18 ` [Bug optimization/13953] " pinskia at gcc dot gnu dot org
@ 2004-05-24 16:37 ` pinskia at gcc dot gnu dot org
2004-06-28 7:40 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-24 16:37 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.5.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13953
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/13953] [tree-ssa] SRA does not work for structs that contain a struct as a member
2004-01-31 21:12 [Bug optimization/13953] New: [tree-ssa] SRA does not work for structs that contain a struct as a member dann at godzilla dot ics dot uci dot edu
2004-01-31 21:18 ` [Bug optimization/13953] " pinskia at gcc dot gnu dot org
2004-05-24 16:37 ` [Bug tree-optimization/13953] " pinskia at gcc dot gnu dot org
@ 2004-06-28 7:40 ` pinskia at gcc dot gnu dot org
2004-06-29 17:23 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-28 7:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-28 07:36 -------
I hear that Richard Henderson is working on a rewrite of SRA.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13953
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/13953] [tree-ssa] SRA does not work for structs that contain a struct as a member
2004-01-31 21:12 [Bug optimization/13953] New: [tree-ssa] SRA does not work for structs that contain a struct as a member dann at godzilla dot ics dot uci dot edu
` (2 preceding siblings ...)
2004-06-28 7:40 ` pinskia at gcc dot gnu dot org
@ 2004-06-29 17:23 ` pinskia at gcc dot gnu dot org
2004-06-29 21:09 ` rth at gcc dot gnu dot org
2004-07-10 0:32 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-29 17:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-29 17:20 -------
SRA works on the structs except for copying:
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;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13953
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/13953] [tree-ssa] SRA does not work for structs that contain a struct as a member
2004-01-31 21:12 [Bug optimization/13953] New: [tree-ssa] SRA does not work for structs that contain a struct as a member dann at godzilla dot ics dot uci dot edu
` (3 preceding siblings ...)
2004-06-29 17:23 ` pinskia at gcc dot gnu dot org
@ 2004-06-29 21:09 ` rth at gcc dot gnu dot org
2004-07-10 0:32 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-06-29 21:09 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2004-06-29 21:09 -------
Fixed on i686. If it's still failing for you, Andrew, it's a
duplicate of PR13952.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13953
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/13953] [tree-ssa] SRA does not work for structs that contain a struct as a member
2004-01-31 21:12 [Bug optimization/13953] New: [tree-ssa] SRA does not work for structs that contain a struct as a member 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-07-10 0:32 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-10 0:32 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13953
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-07-10 0:32 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-31 21:12 [Bug optimization/13953] New: [tree-ssa] SRA does not work for structs that contain a struct as a member dann at godzilla dot ics dot uci dot edu
2004-01-31 21:18 ` [Bug optimization/13953] " pinskia at gcc dot gnu dot org
2004-05-24 16:37 ` [Bug tree-optimization/13953] " pinskia at gcc dot gnu dot org
2004-06-28 7:40 ` pinskia at gcc dot gnu dot org
2004-06-29 17:23 ` pinskia at gcc dot gnu dot org
2004-06-29 21:09 ` rth at gcc dot gnu dot org
2004-07-10 0:32 ` 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).