[Bug tree-optimization/21000] store should not be done if we don't change its value

2008-12-29 Thread pinskia at gcc dot gnu dot org
--- 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 --

[Bug tree-optimization/21000] store should not be done if we don't change its value

2005-07-17 Thread pinskia at gcc dot gnu dot org
--- 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

[Bug tree-optimization/21000] store should not be done if we don't change its value

2005-07-17 Thread pinskia at gcc dot gnu dot org
--- 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

[Bug tree-optimization/21000] store should not be done if we don't change its value

2005-06-12 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-13 04:11 --- Confirmed. -- What|Removed |Added Status|UNCONFIRMED |NEW E

[Bug tree-optimization/21000] store should not be done if we don't change its value

2005-04-13 Thread pinskia at gcc dot gnu dot org
--- 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

[Bug tree-optimization/21000] store should not be done if we don't change its value

2005-04-13 Thread pinskia at gcc dot gnu dot org
--- 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=

[Bug tree-optimization/21000] store should not be done if we don't change its value

2005-04-13 Thread pinskia at gcc dot gnu dot org
--- 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

[Bug tree-optimization/21000] store should not be done if we don't change its value

2005-04-13 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Severity|normal |enhancement Version|unknown |4.1.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id