Prefer to use strlen call instead of inline expansion (PR target/88809).
authorMartin Liska <mliska@suse.cz>
Thu, 2 May 2019 07:57:38 +0000 (09:57 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 2 May 2019 07:57:38 +0000 (07:57 +0000)
commit786e0e5239529de9a4254fe8411a0e8f843e721a
tree8b319e19012eea14cba954edfd1ac8b95a7a6ff3
parent06ceaa1d78d586eba492699075a8dee31ab3a3e8
Prefer to use strlen call instead of inline expansion (PR target/88809).

2019-05-02  Martin Liska  <mliska@suse.cz>

PR target/88809
* config/i386/i386.c (ix86_expand_strlen): Use strlen call.
With -minline-all-stringops use inline expansion using 4B loop.
* doc/invoke.texi: Document the change of
-minline-all-stringops.
2019-05-02  Martin Liska  <mliska@suse.cz>

PR target/88809
* gcc.target/i386/pr88809.c: New test.
* gcc.target/i386/pr88809-2.c: New test.

From-SVN: r270787
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr88809-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr88809.c [new file with mode: 0644]