diff options
author | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-01 08:54:18 +0000 |
---|---|---|
committer | jamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-01 08:54:18 +0000 |
commit | a347af296d8e09c9b22f51d74512cee379da31d8 (patch) | |
tree | 2ae1175a480037017dac3b9663128e1be4517a06 /gcc/params.h | |
parent | 7b1e0f4eba5f71b80100abf554cfeff75a2b0261 (diff) | |
download | gcc-a347af296d8e09c9b22f51d74512cee379da31d8.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137313 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/params.h')
-rw-r--r-- | gcc/params.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/params.h b/gcc/params.h index bb3afb3354d..7e08ec741e5 100644 --- a/gcc/params.h +++ b/gcc/params.h @@ -167,4 +167,6 @@ typedef enum compiler_param PARAM_VALUE (PARAM_L2_CACHE_SIZE) #define USE_CANONICAL_TYPES \ PARAM_VALUE (PARAM_USE_CANONICAL_TYPES) +#define SWITCH_CONVERSION_BRANCH_RATIO \ + PARAM_VALUE (PARAM_SWITCH_CONVERSION_BRANCH_RATIO) #endif /* ! GCC_PARAMS_H */ |