This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/11477] writing 0 to memory-location leads to incorrect optimization
- From: "gcc-bugzilla at jh42 dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Aug 2003 11:47:39 -0000
- Subject: [Bug optimization/11477] writing 0 to memory-location leads to incorrect optimization
- References: <20030709150542.11477.gcc-bugzilla@jh42.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11477
------- Additional Comments From gcc-bugzilla at jh42 dot de 2003-08-18 11:47 -------
But it is not an optimization, because reading from memory, especially from
waitstated sram is always slower and produces larger code than loading a
register with a constant.