This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/21000] store should not be done if we don't change its value
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Apr 2005 19:16:35 -0000
- Subject: [Bug tree-optimization/21000] store should not be done if we don't change its value
- References: <20050413183338.21000.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla 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=21000