public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/21000] store should not be done if we don't change its value
[not found] <bug-21000-6528@http.gcc.gnu.org/bugzilla/>
@ 2008-12-29 19:38 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-29 19:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from pinskia at gcc dot gnu dot org 2008-12-29 19:36 -------
*** This bug has been marked as a duplicate of 38513 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21000
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/21000] store should not be done if we don't change its value
2005-04-13 18:33 [Bug tree-optimization/21000] New: " pinskia at gcc dot gnu dot org
` (5 preceding siblings ...)
2005-07-17 22:52 ` pinskia at gcc dot gnu dot org
@ 2005-07-17 23:06 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-17 23:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-17 22:52 -------
Only f and f2 are fixed. comment #3 is fixed too.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21000
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/21000] store should not be done if we don't change its value
2005-04-13 18:33 [Bug tree-optimization/21000] New: " pinskia at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-06-13 4:11 ` pinskia at gcc dot gnu dot org
@ 2005-07-17 22:52 ` pinskia at gcc dot gnu dot org
2005-07-17 23:06 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-17 22:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-17 22:48 -------
PR 22538 is another testcase.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21000
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/21000] store should not be done if we don't change its value
2005-04-13 18:33 [Bug tree-optimization/21000] New: " pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-04-13 19:18 ` pinskia at gcc dot gnu dot org
@ 2005-06-13 4:11 ` pinskia at gcc dot gnu dot org
2005-07-17 22:52 ` pinskia at gcc dot gnu dot org
2005-07-17 23:06 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-13 4:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-13 04:11 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-06-13 04:11:26
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21000
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/21000] store should not be done if we don't change its value
2005-04-13 18:33 [Bug tree-optimization/21000] New: " pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-04-13 19:16 ` pinskia at gcc dot gnu dot org
@ 2005-04-13 19:18 ` pinskia at gcc dot gnu dot org
2005-06-13 4:11 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-13 19:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-13 19:18 -------
One more thing, we miss a sibcal optimization due to this:
int i;
int g(void) __attribute__((pure));
int f()
{
int t = i;
int t1 = g();
i = t;
return t1;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21000
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/21000] store should not be done if we don't change its value
2005-04-13 18:33 [Bug tree-optimization/21000] New: " pinskia at gcc dot gnu dot org
2005-04-13 18:34 ` [Bug tree-optimization/21000] " pinskia at gcc dot gnu dot org
2005-04-13 18:36 ` pinskia at gcc dot gnu dot org
@ 2005-04-13 19:16 ` pinskia at gcc dot gnu dot org
2005-04-13 19:18 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-13 19:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-13 19:16 -------
We just don't generate any RTL for "i = i".
The optimization for f in comment #0 happens in combine for 3.4.0, so maybe fold could do it, I don't
know.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21000
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/21000] store should not be done if we don't change its value
2005-04-13 18:33 [Bug tree-optimization/21000] New: " pinskia at gcc dot gnu dot org
2005-04-13 18:34 ` [Bug tree-optimization/21000] " pinskia at gcc dot gnu dot org
@ 2005-04-13 18:36 ` pinskia at gcc dot gnu dot org
2005-04-13 19:16 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-13 18:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-13 18:36 -------
Three more cases:
void f1(int *i)
{
*i = *i;
}
int j;
void f2()
{
j = j;
}
int *k;
void f3()
{
*k = *k;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21000
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/21000] store should not be done if we don't change its value
2005-04-13 18:33 [Bug tree-optimization/21000] New: " pinskia at gcc dot gnu dot org
@ 2005-04-13 18:34 ` pinskia at gcc dot gnu dot org
2005-04-13 18:36 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-13 18:34 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Version|unknown |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21000
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-12-29 19:38 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-21000-6528@http.gcc.gnu.org/bugzilla/>
2008-12-29 19:38 ` [Bug tree-optimization/21000] store should not be done if we don't change its value pinskia at gcc dot gnu dot org
2005-04-13 18:33 [Bug tree-optimization/21000] New: " pinskia at gcc dot gnu dot org
2005-04-13 18:34 ` [Bug tree-optimization/21000] " pinskia at gcc dot gnu dot org
2005-04-13 18:36 ` pinskia at gcc dot gnu dot org
2005-04-13 19:16 ` pinskia at gcc dot gnu dot org
2005-04-13 19:18 ` pinskia at gcc dot gnu dot org
2005-06-13 4:11 ` pinskia at gcc dot gnu dot org
2005-07-17 22:52 ` pinskia at gcc dot gnu dot org
2005-07-17 23:06 ` 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).