r137313 - in /trunk/gcc: ChangeLog Makefile.in ...
jamborm@gcc.gnu.org
jamborm@gcc.gnu.org
Tue Jul 1 08:54:00 GMT 2008
Author: jamborm
Date: Tue Jul 1 08:54:18 2008
New Revision: 137313
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=137313
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/tree-ssa/cswtch.c
trunk/gcc/tree-switch-conversion.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/Makefile.in
trunk/gcc/common.opt
trunk/gcc/doc/invoke.texi
trunk/gcc/opts.c
trunk/gcc/params.def
trunk/gcc/params.h
trunk/gcc/passes.c
trunk/gcc/tree-pass.h
More information about the Gcc-cvs
mailing list