This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/43052] Inline memcmp is *much* slower than glibc's
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 11 Nov 2010 10:40:06 +0000
- Subject: [Bug target/43052] Inline memcmp is *much* slower than glibc's
- Auto-submitted: auto-generated
- References: <bug-43052-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052
--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-11 10:39:35 UTC ---
(In reply to comment #4)
> Hmm, I should read testcases curefully. It is memcmp. GCC is not really smart
> on inlining this; I guess we should just disable the inline unless we optimize
> for size since we don't really have enough info to inline it well by default.
We can still inline for very small known sizes where the call overhead
would outweight any optimization in glibc.