diff options
author | Martin Jambor <mjambor@suse.cz> | 2008-07-01 10:54:18 +0200 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2008-07-01 10:54:18 +0200 |
commit | b6e99746ac31845e39844334378bafbb9a93517c (patch) | |
tree | 2ae1175a480037017dac3b9663128e1be4517a06 /gcc/params.def | |
parent | ab652c72359fdd40b5a679e73802e377fe0aa824 (diff) | |
download | gcc-b6e99746ac31845e39844334378bafbb9a93517c.zip gcc-b6e99746ac31845e39844334378bafbb9a93517c.tar.gz gcc-b6e99746ac31845e39844334378bafbb9a93517c.tar.bz2 |
Makefile.in (tree-switch-conversion.o): Add.
2008-07-01 Martin Jambor <mjambor@suse.cz>
* Makefile.in (tree-switch-conversion.o): Add.
(OBJS-common): Add tree-swtch-conversion.o.
* passes.c (init_optimization_passes): Add pass_convert_switch.
* tree-pass.h: (pass_convert_switch): Add.
* tree-switch-conversion.c: New file.
* gcc.dg/tree-ssa/cswtch.c: New testcase.
* common.opt (ftree-cswtch): New option.
* params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
* params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
* opts.c (decode_options): Set flag_tree_switch_conversion when
optimization level is >= 2.
* doc/invoke.texi (Optimize Options): Added description of
-ftree-swtch-conversion and switch-conversion-max-branch-ratio.
From-SVN: r137313
Diffstat (limited to 'gcc/params.def')
-rw-r--r-- | gcc/params.def | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/params.def b/gcc/params.def index d80deff..d1f8fce 100644 --- a/gcc/params.def +++ b/gcc/params.def @@ -710,6 +710,15 @@ DEFPARAM (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR, "Multiplier used for determining the double-queueing threshold", 2, 0, 0) +/* Switch initialization conversion will refuse to create arrays that are + bigger than this parameter times the number of switch branches. */ + +DEFPARAM (PARAM_SWITCH_CONVERSION_BRANCH_RATIO, + "switch-conversion-max-branch-ratio", + "The maximum ratio between array size and switch branches for " + "a switch conversion to take place", + 8, 1, 0) + /* Local variables: mode:c |