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]

[PATCH][alias-improvements] Add timevar for VUSEs walker


Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to the 
branch.

Richard.

2009-02-06  Richard Guenther  <rguenther@suse.de>

	* timevar.def (TV_ALIAS_STMT_WALK): New timevar.
	* tree-ssa-alias.c (walk_non_aliased_vuses): Account to
	TV_ALIAS_STMT_WALK.

Index: alias-improvements/gcc/timevar.def
===================================================================
*** alias-improvements.orig/gcc/timevar.def	2009-01-20 09:21:37.000000000 +0100
--- alias-improvements/gcc/timevar.def	2009-02-04 15:53:54.000000000 +0100
*************** DEFTIMEVAR (TV_DF_NOTE		     , "df reg d
*** 69,74 ****
--- 69,75 ----
  DEFTIMEVAR (TV_REG_STATS	     , "register information")
  
  DEFTIMEVAR (TV_ALIAS_ANALYSIS	     , "alias analysis")
+ DEFTIMEVAR (TV_ALIAS_STMT_WALK	     , "alias stmt walking")
  DEFTIMEVAR (TV_REG_SCAN		     , "register scan")
  DEFTIMEVAR (TV_REBUILD_JUMP	     , "rebuild jump labels")
  /* Timing in various stages of the compiler.  */
Index: alias-improvements/gcc/tree-ssa-alias.c
===================================================================
*** alias-improvements.orig/gcc/tree-ssa-alias.c	2009-02-04 15:36:58.000000000 +0100
--- alias-improvements/gcc/tree-ssa-alias.c	2009-02-04 17:15:31.000000000 +0100
*************** walk_non_aliased_vuses (tree ref, tree v
*** 825,834 ****
--- 895,907 ----
    bitmap visited = NULL;
    void *res;
  
+   timevar_push (TV_ALIAS_STMT_WALK);
+ 
    do
      {
        gimple def_stmt;
  
+       /* ???  Do we want to account this to TV_ALIAS_STMT_WALK?  */
        res = (*walker) (ref, vuse, data);
        if (res)
  	break;
*************** walk_non_aliased_vuses (tree ref, tree v
*** 850,854 ****
--- 923,929 ----
    if (visited)
      BITMAP_FREE (visited);
  
+   timevar_pop (TV_ALIAS_STMT_WALK);
+ 
    return res;
  }


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