This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/32650] Convert p+strlen(p) to strchr(p, '\0') if profitable
- From: "wdijkstr at arm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 28 Sep 2016 11:12:39 +0000
- Subject: [Bug tree-optimization/32650] Convert p+strlen(p) to strchr(p, '\0') if profitable
- Auto-submitted: auto-generated
- References: <bug-32650-4@http.gcc.gnu.org/bugzilla/>
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.