This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, middle-end] Switch initializations conversion
- From: Martin Jambor <mjambor at suse dot cz>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 2 Jul 2008 12:02:59 +0200
- Subject: Re: [PATCH, middle-end] Switch initializations conversion
- References: <20080604124111.GA17818@virgil.suse.cz> <b798aad50806250617u5b2f8e80tdabc0f2ad7b62a83@mail.gmail.com> <20080630154239.GA28403@virgil.suse.cz> <20080701090248.GA29949@virgil.suse.cz>
Hi,
On Tue, Jul 01, 2008 at 11:02:48AM +0200, Martin Jambor wrote:
> I have eventually committed the following as revision 137313. The only
> difference from what I posted yesterday is a minor difference in
> formatting of the affected option list in documentation (invoke.texi).
>
Richi has asked me to add a time var for the pass and approved the
patch below today on IRC. I have therefore committed it as revision
137349 after bootstrapping and regression testing on i586-suse-linux.
2008-07-02 Martin Jambor <mjambor@suse.cz>
* tree-switch-conversion.c: Included timevar.h
(pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
* timevar.def: Added TV_TREE_SWITCH_CONVERSION.
Index: swtch/gcc/timevar.def
===================================================================
--- swtch.orig/gcc/timevar.def
+++ swtch/gcc/timevar.def
@@ -140,6 +140,7 @@ DEFTIMEVAR (TV_TREE_NRV , "tree NR
DEFTIMEVAR (TV_TREE_COPY_RENAME , "tree rename SSA copies")
DEFTIMEVAR (TV_TREE_SSA_VERIFY , "tree SSA verifier")
DEFTIMEVAR (TV_TREE_STMT_VERIFY , "tree STMT verifier")
+DEFTIMEVAR (TV_TREE_SWITCH_CONVERSION, "tree switch initialization conversion")
DEFTIMEVAR (TV_CGRAPH_VERIFY , "callgraph verifier")
DEFTIMEVAR (TV_DOM_FRONTIERS , "dominance frontiers")
DEFTIMEVAR (TV_DOMINANCE , "dominance computation")
Index: swtch/gcc/tree-switch-conversion.c
===================================================================
--- swtch.orig/gcc/tree-switch-conversion.c
+++ swtch/gcc/tree-switch-conversion.c
@@ -868,7 +868,7 @@ struct gimple_opt_pass pass_convert_swit
NULL, /* sub */
NULL, /* next */
0, /* static_pass_number */
- 0, /* tv_id */
+ TV_TREE_SWITCH_CONVERSION, /* tv_id */
PROP_cfg | PROP_ssa, /* properties_required */
0, /* properties_provided */
0, /* properties_destroyed */