public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/13758] New: [tree-ssa] consecutive stores to the same array element not removed
@ 2004-01-20 6:33 dann at godzilla dot ics dot uci dot edu
2004-01-20 14:52 ` [Bug optimization/13758] " 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:33 UTC (permalink / raw)
To: gcc-bugs
int foo (int * arr)
{
arr[0] = 1;
arr[0] = 2;
}
the .optimized dump when compiling with -O2 is:
foo (arr)
{
<bb 0>:
*arr = 1; /* This should be eliminated*/
*arr = 2;
return;
}
--
Summary: [tree-ssa] consecutive stores to the same array element
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=13758
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug optimization/13758] [tree-ssa] consecutive stores to the same array element not removed
2004-01-20 6:33 [Bug optimization/13758] New: [tree-ssa] consecutive stores to the same array element not removed dann at godzilla dot ics dot uci dot edu
@ 2004-01-20 14:52 ` 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:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-20 14:52 -------
Confirmed, even with pta, GCC does not remove it.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |pessimizes-code
Last reconfirmed|0000-00-00 00:00:00 |2004-01-20 14:52:46
date| |
Target Milestone|--- |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13758
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug optimization/13758] [tree-ssa] consecutive stores to the same array element not removed
2004-01-20 6:33 [Bug optimization/13758] New: [tree-ssa] consecutive stores to the same array element not removed dann at godzilla dot ics dot uci dot edu
2004-01-20 14:52 ` [Bug optimization/13758] " pinskia at gcc dot gnu dot org
@ 2004-01-20 16:33 ` dberlin at dberlin dot org
2004-01-21 20:14 ` 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 array element not removed
Just as an FYI, I have no plans to make PTA help this case.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13758
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug optimization/13758] [tree-ssa] consecutive stores to the same array element not removed
2004-01-20 6:33 [Bug optimization/13758] New: [tree-ssa] consecutive stores to the same array element not removed dann at godzilla dot ics dot uci dot edu
2004-01-20 14:52 ` [Bug optimization/13758] " pinskia at gcc dot gnu dot org
2004-01-20 16:33 ` dberlin at dberlin dot org
@ 2004-01-21 20:14 ` 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:14 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13758
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug optimization/13758] [tree-ssa] consecutive stores to the same array element not removed
2004-01-20 6:33 [Bug optimization/13758] New: [tree-ssa] consecutive stores to the same array element not removed dann at godzilla dot ics dot uci dot edu
` (2 preceding siblings ...)
2004-01-21 20:14 ` 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:32 -------
Fixed by recent addition of DSE pass
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13758
^ 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:33 [Bug optimization/13758] New: [tree-ssa] consecutive stores to the same array element not removed dann at godzilla dot ics dot uci dot edu
2004-01-20 14:52 ` [Bug optimization/13758] " pinskia at gcc dot gnu dot org
2004-01-20 16:33 ` dberlin at dberlin dot org
2004-01-21 20:14 ` 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).