]> git.ipfire.org Git - thirdparty/gcc.git/commit
sh-mem.cc (sh_expand_cmpnstr, [...]): Factorize probabilities...
authorChristian Bruel <christian.bruel@st.com>
Wed, 6 Nov 2013 08:49:15 +0000 (09:49 +0100)
committerChristian Bruel <chrbr@gcc.gnu.org>
Wed, 6 Nov 2013 08:49:15 +0000 (09:49 +0100)
commit3a1a7897b7376b8634dfc4862540b02c691b626d
tree23b7846a855026c24877941eabd64fa7b50c6aa9
parentfda1ba0aeacbbe986bd29677a8165e23a0d7d178
sh-mem.cc (sh_expand_cmpnstr, [...]): Factorize probabilities...

2013-11-06  Christian Bruel  <christian.bruel@st.com>

* gcc/config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
Factorize probabilities, Use adjust_address instead of
adjust_automodify_address when possible. Enable for optimize.
(sh_expand_strlen): New function.
* gcc/config/sh/sh-protos.h (sh_expand_strlen): Declare.
* gcc/config/sh/sh.md (strlensi): New pattern.
(UNSPEC_BUILTIN_STRLEN): Define.

From-SVN: r204445
gcc/ChangeLog
gcc/config/sh/sh-mem.cc
gcc/config/sh/sh-protos.h
gcc/config/sh/sh.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/sh/strlen.c [new file with mode: 0644]