This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/81739] Replace calls to memcmp with more efficient code if possible
- 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: Tue, 08 Aug 2017 07:36:21 +0000
- Subject: [Bug target/81739] Replace calls to memcmp with more efficient code if possible
- Auto-submitted: auto-generated
- References: <bug-81739-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81739
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Target| |x86_64-*-*, i?86-*-*
Component|tree-optimization |target
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think we do this if the result is used in a != 0 equality compare, your case
is much harder generally. We do have a cmpmem optab though, thus the target(s)
could do better here.