This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 0/3] Better folding of 2 string builtin-ins
- From: marxin <mliska at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 17 Aug 2016 08:52:16 +0200
- Subject: [PATCH 0/3] Better folding of 2 string builtin-ins
- Authentication-results: sourceware.org; auth=none
- Resent-user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2
Hi.
During playing with -fprofile-values I've noticed that some builtins
are not folded ideally. Fixing in attached mini patch series.
Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
Ready to be installed?
Martin
marxin (3):
Fold BUILT_IN_STRNCASECMP
Smarter folding of __builtin_memchr
Test folding of strn{case}cmp and memchr
gcc/builtins.c | 39 ++++++++++++----
gcc/testsuite/gcc.dg/tree-ssa/builtins-folding.c | 59 ++++++++++++++++++++++++
2 files changed, 88 insertions(+), 10 deletions(-)
create mode 100644 gcc/testsuite/gcc.dg/tree-ssa/builtins-folding.c
--
2.9.2