This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Optimize strchr(x, 0), strcmp("a","b") and strstr("abc","bc")
- To: Jakub Jelinek <jakub at redhat dot com>
- Subject: Re: [PATCH] Optimize strchr(x, 0), strcmp("a","b") and strstr("abc","bc")
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 07 Nov 2000 18:25:47 -0200
- Cc: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, jsm28 at cam dot ac dot uk, gcc-patches at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <20001107172550.N6915@sunsite.ms.mff.cuni.cz>
On Nov 7, 2000, Jakub Jelinek <jakub@redhat.com> wrote:
> 4) optimizes strchr(x, 0) into __builtin_strlen(x) (ie. on some machine
> it will be even more optimized)
Is this a typo or a thinko? It should be `x + __builtin_strlen(x)'.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me