* value-prof.c (tree_stringops_transform): New.
commitf656b751061bf8b52970db50fa81a417951c2452
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Dec 2006 14:19:11 +0000 (11 14:19 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Dec 2006 14:19:11 +0000 (11 14:19 +0000)
tree77f1ba617455cbee2a407e6f38b6978a81655463
parentbae5345b3f2dcec67d0e46668b3c4a312e966bd5
* value-prof.c (tree_stringops_transform): New.
(tree_value_profile_transformations): Require count to be non-zero;
call stringop transform; reset stmt BSI after BB changed.
(tree_divmod_fixed_value, tree_mod_pow2): Don't emit unnecesary label.
(interesting_stringop_to_profile_p, tree_stringop_fixed_value): New.
(tree_stringops_values_to_profile): New.
(tree_values_to_profile): Call tree_stringops_values_to_profile.
* tree.h (build_string_literal): Tidy prototype.
(validate_arglist, builtin_memset_read_str, get_pointer_alignment):
Declare.
* builtins.c (validate_arglist, builtin_memset_read_str,
get_pointer_alignment): Export.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119735 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-prof/stringop-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-prof/stringop-2.c [new file with mode: 0644]
gcc/tree.h
gcc/value-prof.c