[Bug tree-optimization/63464] compare one character to many: faster
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Oct 10 12:16:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63464
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Oct 10 12:15:30 2014
New Revision: 216072
URL: https://gcc.gnu.org/viewcvs?rev=216072&root=gcc&view=rev
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-switch-conversion.c
More information about the Gcc-bugs
mailing list