[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 8 13:50:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-08 13:50:18 UTC ---
IMHO you should also handle the case when one of the operand is STRING_CST,
then you don't need to test its alignment, you compare the memory content with
something read from the string at compile time.
More information about the Gcc-bugs
mailing list