Fix emission of jump tables (PR tree-optimization/86263).
authorMartin Liska <mliska@suse.cz>
Fri, 22 Jun 2018 11:32:20 +0000 (13:32 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 22 Jun 2018 11:32:20 +0000 (11:32 +0000)
commit5885a1bd530e77cbe82578d07c59771e59a87c28
treee89d27c1e190e257cf552b7f620e9ceed9a09243
parent0c172706f4c49a3015ecd248b90ddbbb62dbedec
Fix emission of jump tables (PR tree-optimization/86263).

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

        PR tree-optimization/86263
* tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
        Bail out if is_enabled is false.
* tree-switch-conversion.h (jump_table_cluster::is_enabled):
        New declaration.
(jump_table_cluster::is_enabled): New function.

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