[Bug tree-optimization/32650] Convert p+strlen(p) to strchr(p, '\0') if profitable

wdijkstr at arm dot com gcc-bugzilla@gcc.gnu.org
Wed Sep 28 11:12:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32650

Wilco <wdijkstr at arm dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wdijkstr at arm dot com

--- Comment #2 from Wilco <wdijkstr at arm dot com> ---
This is codesize optimization as strchr is significantly slower than strlen -
see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61056 which changes strchr
into strlen.


More information about the Gcc-bugs mailing list