This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Optimize character :: c ... (c .ne. 'ab')
- From: Tobias Burnus <tobias dot burnus at physik dot fu-berlin dot de>
- To: Jakub Jelinek <jakub at redhat dot com>, gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Thu, 15 Jul 2010 09:34:12 +0200
- Subject: Re: [PATCH] Optimize character :: c ... (c .ne. 'ab')
Jakub Jelinek wrote:
> As has been discussed yesterday, if LEN_TRIM of a string literal
> is longer than the other string length, the strings are known to
> compare unequal (it isn't known whether they are < or > at compile time
> The following patch optimizes that.
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
OK. Thanks for the patch!