tree-switch-conversion.c
46.3 KB
-
re PR tree-optimization/63464 (compare one character to many: faster) · aa79a1e1
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
Jakub Jelinek committed