Enable clustering for switch statements.
authorMartin Liska <mliska@suse.cz>
Wed, 20 Jun 2018 08:52:35 +0000 (10:52 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 20 Jun 2018 08:52:35 +0000 (08:52 +0000)
commit2f928c1b63e67155f4b3c194e3a9cc53fb6fb107
tree3ee984a0b04610c608331e71554ad3b54cb70c9d
parentdc223ad48971b2d2b1e4bcfbbb47a96354e3d2ea
Enable clustering for switch statements.

2018-06-20  Martin Liska  <mliska@suse.cz>

* tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
        New.
(bit_test_cluster::find_bit_tests): Likewise.
(switch_decision_tree::analyze_switch_statement): Find clusters.
* tree-switch-conversion.h (struct jump_table_cluster): Document
        hierarchy.

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