public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/95458] Inline strncmp is *much* slower than glibc
Date: Mon, 26 Oct 2020 11:17:09 +0000	[thread overview]
Message-ID: <bug-95458-4-TqSmza983U@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-95458-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:

https://gcc.gnu.org/g:4052c05e5b30fee0fb95a51e74e12a56dce29491

commit r11-4380-g4052c05e5b30fee0fb95a51e74e12a56dce29491
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Jul 15 10:34:54 2020 -0700

    x86: Inline strncmp only with -minline-all-stringops

    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_cmpstrn_or_cmpmem):
            Return false for -mno-inline-all-stringops.

    gcc/testsuite/

            PR target/95458
            * gcc.target/i386/pr95458-1.c: New test.
            * gcc.target/i386/pr95458-2.c: Likewise.

  parent reply	other threads:[~2020-10-26 11:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-01 12:20 [Bug target/95458] New: " hjl.tools at gmail dot com
2020-07-16 20:54 ` [Bug target/95458] " aoliva at gcc dot gnu.org
2020-08-19 13:22 ` hjl.tools at gmail dot com
2020-10-26 11:17 ` cvs-commit at gcc dot gnu.org [this message]
2020-10-26 11:17 ` hjl.tools at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-95458-4-TqSmza983U@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).