re PR tree-optimization/63464 (compare one character to many: faster)
authorJakub Jelinek <jakub@redhat.com>
Fri, 10 Oct 2014 12:15:30 +0000 (14:15 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 10 Oct 2014 12:15:30 +0000 (14:15 +0200)
commitaa79a1e1c8bc73e1b5efcfa9de532f8c6b2e3151
tree04dd8d6f9599125815f4e49100134fff987c996f
parentf1485e5b24f83af957e3d528dc80cd88b67acdc5
re PR tree-optimization/63464 (compare one character to many: faster)

PR tree-optimization/63464
* tree-switch-conversion.c (struct case_bit_test): Remove
hi and lo fields, add wide_int mask field.
(emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
hi/lo fields into wide_int mask operations, optimize by pretending
minval to be 0 if maxval is small enough.
(process_switch): Adjust caller.

From-SVN: r216072
gcc/ChangeLog
gcc/tree-switch-conversion.c