This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, middle-end] Switch initializations conversion


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 */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]