Add -fbit-tests option.
authorMartin Liska <mliska@suse.cz>
Fri, 2 Oct 2020 12:12:06 +0000 (14:12 +0200)
committerMartin Liska <mliska@suse.cz>
Fri, 6 Nov 2020 15:54:26 +0000 (16:54 +0100)
commit9b11203e33f999933aaa99bba779ffd7cd329849
tree9548666f7f0212fc2d34759af7ae0ff2ea21e730
parentd398949230786a4d678677fab0070ad779cc1c84
Add -fbit-tests option.

gcc/ChangeLog:

* common.opt: Add new -fbit-tests option.
* doc/invoke.texi: Document the option.
* tree-switch-conversion.c (bit_test_cluster::find_bit_tests):
Use the option.
* tree-switch-conversion.h (is_enabled): New function.

gcc/testsuite/ChangeLog:

* gcc.dg/tree-ssa/switch-4.c: New test.
gcc/common.opt
gcc/doc/invoke.texi
gcc/testsuite/gcc.dg/tree-ssa/switch-4.c [new file with mode: 0644]
gcc/tree-switch-conversion.c
gcc/tree-switch-conversion.h