Fix thinko in early bail out in tree-switch-conversion.
authorMartin Liska <mliska@suse.cz>
Mon, 2 Sep 2019 07:09:39 +0000 (09:09 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 2 Sep 2019 07:09:39 +0000 (07:09 +0000)
commit1acbaa7530d7ec1e38fe8f5f1c5313b0d12a4f97
treefa7d92210c72bfdc809824d297f11c8b02974a7b
parentae0d3f6a593058ab9fd56a34f604852ea2dec79b
Fix thinko in early bail out in tree-switch-conversion.

2019-09-02  Martin Liska  <mliska@suse.cz>

* tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
Bail out when we'll end up with the same number of clusters as
at the beginning.
(bit_test_cluster::find_bit_tests): Likewise for bit tests.
(jump_table_cluster::can_be_handled): Remove the guard
as it's already handled in ::is_enabled.  Allocate output
after early bail out.

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