PING^4 [PATCH] x86: Inline strncmp only with -minline-all-stringops

2020-10-23 Thread H.J. Lu via Gcc-patches
On Fri, Oct 2, 2020 at 6:23 AM Jan Hubicka wrote: > > > > > diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md > > > > index fb677e17817..f3fbed81c4a 100644 > > > > --- a/gcc/config/i386/i386.md > > > > +++ b/gcc/config/i386/i386.md > > > > @@ -18007,7 +18007,13 @@ (define_expand "cmps

Re: PING^3 [PATCH] x86: Inline strncmp only with -minline-all-stringops

2020-10-02 Thread Jan Hubicka
> > > diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md > > > index fb677e17817..f3fbed81c4a 100644 > > > --- a/gcc/config/i386/i386.md > > > +++ b/gcc/config/i386/i386.md > > > @@ -18007,7 +18007,13 @@ (define_expand "cmpstrnsi" > > > { > > >rtx addr1, addr2, countreg, align, out

PING^3 [PATCH] x86: Inline strncmp only with -minline-all-stringops

2020-10-02 Thread H.J. Lu via Gcc-patches
On Wed, Sep 16, 2020 at 10:07 PM H.J. Lu wrote: > > On Wed, Aug 19, 2020 at 6:25 AM H.J. Lu wrote: > > > > On Wed, Jul 15, 2020 at 10:42:27AM -0700, H.J. Lu wrote: > > > Expand strncmp to "repz cmpsb" only with -minline-all-stringops since > > > "repz cmpsb" can be much slower than strncmp functi

PING^2 [PATCH] x86: Inline strncmp only with -minline-all-stringops

2020-09-16 Thread H.J. Lu via Gcc-patches
On Wed, Aug 19, 2020 at 6:25 AM H.J. Lu wrote: > > On Wed, Jul 15, 2020 at 10:42:27AM -0700, H.J. Lu wrote: > > Expand strncmp to "repz cmpsb" only with -minline-all-stringops since > > "repz cmpsb" can be much slower than strncmp function implemented with > > vector instructions, see > > > > http

PING [PATCH] x86: Inline strncmp only with -minline-all-stringops

2020-08-19 Thread H.J. Lu via Gcc-patches
On Wed, Jul 15, 2020 at 10:42:27AM -0700, H.J. Lu wrote: > Expand strncmp to "repz cmpsb" only with -minline-all-stringops since > "repz cmpsb" can be much slower than strncmp function implemented with > vector instructions, see > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052 > > gcc/ > >

[PATCH] x86: Inline strncmp only with -minline-all-stringops

2020-07-15 Thread H.J. Lu via Gcc-patches
Expand strncmp to "repz cmpsb" only with -minline-all-stringops since "repz cmpsb" can be much slower than strncmp function implemented with vector instructions, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052 gcc/ PR target/95458 * config/i386/i386-expand.c (ix86_expand_c