public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/13759] New: [tree-ssa] consecutive stores to the same structure field not removed
@ 2004-01-20  6:40 dann at godzilla dot ics dot uci dot edu
  2004-01-20 14:58 ` [Bug optimization/13759] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: dann at godzilla dot ics dot uci dot edu @ 2004-01-20  6:40 UTC (permalink / raw)
  To: gcc-bugs

struct s
{
  int s;
  char p;
  int arr[10];
};

int foo0 (struct s * f)
{
  f->s = 1;
  f->s = 2;
}

the .optimized dump when compiling with -O2 is: 

foo0 (f)
{
<bb 0>:
  f->s = 1; /* This should be eliminated*/
  f->s = 2;
  return;

}

-- 
           Summary: [tree-ssa] consecutive stores to the same structure
                    field not removed
           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=13759


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

* [Bug optimization/13759] [tree-ssa] consecutive stores to the same structure field not removed
  2004-01-20  6:40 [Bug optimization/13759] New: [tree-ssa] consecutive stores to the same structure field not removed dann at godzilla dot ics dot uci dot edu
@ 2004-01-20 14:58 ` pinskia at gcc dot gnu dot org
  2004-01-20 16:33 ` dberlin at dberlin dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-20 14:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-20 14:58 -------
Confimed, even pta does not help.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |pessimizes-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-20 14:58:39
               date|                            |
   Target Milestone|---                         |tree-ssa


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


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

* [Bug optimization/13759] [tree-ssa] consecutive stores to the same structure field not removed
  2004-01-20  6:40 [Bug optimization/13759] New: [tree-ssa] consecutive stores to the same structure field not removed dann at godzilla dot ics dot uci dot edu
  2004-01-20 14:58 ` [Bug optimization/13759] " pinskia at gcc dot gnu dot org
@ 2004-01-20 16:33 ` dberlin at dberlin dot org
  2004-01-21 20:15 ` pinskia at gcc dot gnu dot org
  2004-02-16 15:32 ` law at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: dberlin at dberlin dot org @ 2004-01-20 16:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dberlin at dberlin dot org  2004-01-20 16:33 -------
Subject: Re:  [tree-ssa] consecutive stores to the same structure field not removed

This, however, I will work on making PTA help.



-- 


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


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

* [Bug optimization/13759] [tree-ssa] consecutive stores to the same structure field not removed
  2004-01-20  6:40 [Bug optimization/13759] New: [tree-ssa] consecutive stores to the same structure field not removed dann at godzilla dot ics dot uci dot edu
  2004-01-20 14:58 ` [Bug optimization/13759] " pinskia at gcc dot gnu dot org
  2004-01-20 16:33 ` dberlin at dberlin dot org
@ 2004-01-21 20:15 ` pinskia at gcc dot gnu dot org
  2004-02-16 15:32 ` law at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-21 20:15 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


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


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

* [Bug optimization/13759] [tree-ssa] consecutive stores to the same structure field not removed
  2004-01-20  6:40 [Bug optimization/13759] New: [tree-ssa] consecutive stores to the same structure field not removed dann at godzilla dot ics dot uci dot edu
                   ` (2 preceding siblings ...)
  2004-01-21 20:15 ` pinskia at gcc dot gnu dot org
@ 2004-02-16 15:32 ` law at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: law at gcc dot gnu dot org @ 2004-02-16 15:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From law at gcc dot gnu dot org  2004-02-16 15:31 -------
Fixed by recent addition of DSE pass.

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


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


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

end of thread, other threads:[~2004-02-16 15:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-20  6:40 [Bug optimization/13759] New: [tree-ssa] consecutive stores to the same structure field not removed dann at godzilla dot ics dot uci dot edu
2004-01-20 14:58 ` [Bug optimization/13759] " pinskia at gcc dot gnu dot org
2004-01-20 16:33 ` dberlin at dberlin dot org
2004-01-21 20:15 ` pinskia at gcc dot gnu dot org
2004-02-16 15:32 ` law 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).