diff options
author | Martin Liska <mliska@suse.cz> | 2019-05-10 08:32:31 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-05-10 06:32:31 +0000 |
commit | 26f36b50ead92836710b0ae799abaf4f000a6f88 (patch) | |
tree | ebe4443deb58864102d8c91e8577eabf00b2fdd5 /gcc/params.def | |
parent | 38613b9baa4237c8b730a63742ba606cb97f6a9f (diff) | |
download | gcc-26f36b50ead92836710b0ae799abaf4f000a6f88.zip gcc-26f36b50ead92836710b0ae799abaf4f000a6f88.tar.gz gcc-26f36b50ead92836710b0ae799abaf4f000a6f88.tar.bz2 |
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
Diffstat (limited to 'gcc/params.def')
-rw-r--r-- | gcc/params.def | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/params.def b/gcc/params.def index 5830cb5..23b8743 100644 --- a/gcc/params.def +++ b/gcc/params.def @@ -1175,6 +1175,20 @@ DEFPARAM (PARAM_CASE_VALUES_THRESHOLD, "if 0, use the default for the machine.", 0, 0, 0) +DEFPARAM (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE, + "jump-table-max-growth-ratio-for-size", + "The maximum code size growth ratio when expanding " + "into a jump table (in percent). The parameter is used when " + "optimizing for size.", + 300, 0, 0) + +DEFPARAM (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED, + "jump-table-max-growth-ratio-for-speed", + "The maximum code size growth ratio when expanding " + "into a jump table (in percent). The parameter is used when " + "optimizing for speed.", + 800, 0, 0) + /* Data race flags for C++0x memory model compliance. */ DEFPARAM (PARAM_ALLOW_STORE_DATA_RACES, "allow-store-data-races", |