Add params for jump-table expansion params (PR middle-end/90340).
authorMartin Liska <mliska@suse.cz>
Fri, 10 May 2019 06:32:31 +0000 (08:32 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 10 May 2019 06:32:31 +0000 (06:32 +0000)
commit26f36b50ead92836710b0ae799abaf4f000a6f88
treeebe4443deb58864102d8c91e8577eabf00b2fdd5
parent38613b9baa4237c8b730a63742ba606cb97f6a9f
Add params for jump-table expansion params (PR middle-end/90340).

2019-05-10  Martin Liska  <mliska@suse.cz>

PR middle-end/90340
* doc/invoke.texi: New params.
* params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
(PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
* tree-switch-conversion.c (jump_table_cluster::can_be_handled):
Use it.
* tree-switch-conversion.h (struct jump_table_cluster):
Likewise.
2019-05-10  Martin Liska  <mliska@suse.cz>

PR middle-end/90340
* gcc.dg/tree-ssa/pr90340-2.c: New test.
* gcc.dg/tree-ssa/pr90340.c: New test.

From-SVN: r271053
gcc/ChangeLog
gcc/doc/invoke.texi
gcc/params.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr90340-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr90340.c [new file with mode: 0644]
gcc/tree-switch-conversion.c
gcc/tree-switch-conversion.h