This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0
- 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: Wed, 08 Feb 2012 14:37:24 +0000
- Subject: [Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0
- Auto-submitted: auto-generated
- References: <bug-52171-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-02-08 14:37:24 UTC ---
For comparison against constants it might be worthwhile to still allow two
loads to improve the number of alignment cases we can handle. Well, I'm not
sure we can expect anything more than 1-byte alignment for the most cases.