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 <h...@gcc.gnu.org>:

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

commit r11-4380-g4052c05e5b30fee0fb95a51e74e12a56dce29491
Author: H.J. Lu <hjl.to...@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.
  • [Bug target/95458] Inline strnc... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to