Come up with jump_table ratio constants used in jump_table_cluster.
authorMartin Liska <mliska@suse.cz>
Thu, 28 Jun 2018 07:15:55 +0000 (09:15 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 28 Jun 2018 07:15:55 +0000 (07:15 +0000)
commit1aabb71d1331430965794be43f01d0e42e1351e3
tree8dca8402123e02905bfcf087e6c8f2397112c5be
parentdf7c79742af79bc2873ca28a8b3037a088444ca7
Come up with jump_table ratio constants used in jump_table_cluster.

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

* tree-switch-conversion.c (jump_table_cluster::can_be_handled):
        Use newly introduced constants.
* tree-switch-conversion.h (struct jump_table_cluster):
        Define max_ratio_for_size and max_ratio_for_speed.

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