This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]