This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/49865] Unnecessary reload causes small size regression from 4.6.1
- From: "sgunderson at bigfoot dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 27 Jul 2011 11:39:13 +0000
- Subject: [Bug target/49865] Unnecessary reload causes small size regression from 4.6.1
- Auto-submitted: auto-generated
- References: <bug-49865-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49865
--- Comment #1 from sgunderson at bigfoot dot com 2011-07-27 11:38:57 UTC ---
(In reply to comment #0)
> Of course, the _most_ efficient code sequence here would be doing the i = 0
> before the memset, but I'm not sure if this is legal. However, eax should still
> contain zero, so the mov could be done from eax instead of from a constant.
Actually, thinking about it, the most efficient code sequence would be just
giving 4100 to memset instead of 4096, but that's for an enhancement request at
some point.