[PATCH][alias-improvements] Remove unused params and timevars

Richard Guenther rguenther@suse.de
Mon Jan 19 14:01:00 GMT 2009


Bootstrap and tests running on x86_64-unknown-linux-gnu, will apply to the
branch after that finished.

Richard.

2009-01-19  Richard Guenther  <rguenther@suse.de>

	* doc/invoke.texi (max-aliased-vops): Remove docs.
	(avg-aliased-vops): Likewise.
	* opts.c (decode_options): Do not adjust max-aliased-vops or
	avg-aliased-vops values.
	* params.def (PARAM_MAX_ALIASED_VOPS): Remove.
	(PARAM_AVG_ALIASED_VOPS): Likewise.
	* params.h (MAX_ALIASED_VOPS): Remove.
	(AVG_ALIASED_VOPS): Likewise.
	* timevar.def (TV_TREE_MAY_ALIAS): Remove.
	(TV_CALL_CLOBBER): Likewise.
	(TV_FLOW_SENSITIVE): Likewise.
	(TV_FLOW_INSENSITIVE): Likewise.
	(TV_MEMORY_PARTITIONING): Likewise.

Index: alias-improvements/gcc/doc/invoke.texi
===================================================================
*** alias-improvements.orig/gcc/doc/invoke.texi	2009-01-13 17:04:49.000000000 +0100
--- alias-improvements/gcc/doc/invoke.texi	2009-01-19 13:30:27.000000000 +0100
*************** Maximum number of basic blocks on path t
*** 7386,7417 ****
  @item max-cse-insns
  The maximum instructions CSE process before flushing. The default is 1000.
  
- @item max-aliased-vops
- 
- Maximum number of virtual operands per function allowed to represent
- aliases before triggering the alias partitioning heuristic.  Alias
- partitioning reduces compile times and memory consumption needed for
- aliasing at the expense of precision loss in alias information.  The
- default value for this parameter is 100 for -O1, 500 for -O2 and 1000
- for -O3.
- 
- Notice that if a function contains more memory statements than the
- value of this parameter, it is not really possible to achieve this
- reduction.  In this case, the compiler will use the number of memory
- statements as the value for @option{max-aliased-vops}.
- 
- @item avg-aliased-vops
- 
- Average number of virtual operands per statement allowed to represent
- aliases before triggering the alias partitioning heuristic.  This
- works in conjunction with @option{max-aliased-vops}.  If a function
- contains more than @option{max-aliased-vops} virtual operators, then
- memory symbols will be grouped into memory partitions until either the
- total number of virtual operators is below @option{max-aliased-vops}
- or the average number of virtual operators per memory statement is
- below @option{avg-aliased-vops}.  The default value for this parameter
- is 1 for -O1 and -O2, and 3 for -O3.
- 
  @item ggc-min-expand
  
  GCC uses a garbage collector to manage its own memory allocation.  This
--- 7386,7391 ----
Index: alias-improvements/gcc/opts.c
===================================================================
*** alias-improvements.orig/gcc/opts.c	2009-01-07 11:57:03.000000000 +0100
--- alias-improvements/gcc/opts.c	2009-01-19 13:31:28.000000000 +0100
*************** void
*** 807,814 ****
  decode_options (unsigned int argc, const char **argv)
  {
    static bool first_time_p = true;
-   static int initial_max_aliased_vops;
-   static int initial_avg_aliased_vops;
    static int initial_min_crossjump_insns;
    static int initial_max_fields_for_field_sensitive;
    static unsigned int initial_lang_mask;
--- 807,812 ----
*************** decode_options (unsigned int argc, const
*** 827,834 ****
        lang_hooks.initialize_diagnostics (global_dc);
  
        /* Save initial values of parameters we reset.  */
-       initial_max_aliased_vops = MAX_ALIASED_VOPS;
-       initial_avg_aliased_vops = AVG_ALIASED_VOPS;
        initial_min_crossjump_insns
  	= compiler_params[PARAM_MIN_CROSSJUMP_INSNS].value;
        initial_max_fields_for_field_sensitive
--- 825,830 ----
*************** decode_options (unsigned int argc, const
*** 935,945 ****
    flag_tree_switch_conversion = 1;
    flag_ipa_cp = opt2;
  
-   /* Allow more virtual operators to increase alias precision.  */
- 
-   set_param_value ("max-aliased-vops",
- 		   (opt2) ? 500 : initial_max_aliased_vops);
- 
    /* Track fields in field-sensitive alias analysis.  */
    set_param_value ("max-fields-for-field-sensitive",
  		   (opt2) ? 100 : initial_max_fields_for_field_sensitive);
--- 931,936 ----
*************** decode_options (unsigned int argc, const
*** 955,967 ****
    if (flag_ipa_cp_clone)
      flag_ipa_cp = 1;
  
-   /* Allow even more virtual operators.  Max-aliased-vops was set above for
-      -O2, so don't reset it unless we are at -O3.  */
-   if (opt3)
-     set_param_value ("max-aliased-vops", 1000);
- 
-   set_param_value ("avg-aliased-vops", (opt3) ? 3 : initial_avg_aliased_vops);
- 
    /* Just -O1/-O0 optimizations.  */
    opt1_max = (optimize <= 1);
    align_loops = opt1_max;
--- 946,951 ----
Index: alias-improvements/gcc/params.def
===================================================================
*** alias-improvements.orig/gcc/params.def	2009-01-13 17:04:57.000000000 +0100
--- alias-improvements/gcc/params.def	2009-01-19 13:29:44.000000000 +0100
*************** DEFPARAM(PARAM_MAX_RELOAD_SEARCH_INSNS,
*** 537,552 ****
  	 "The maximum number of instructions to search backward when looking for equivalent reload",
  	 100, 0, 0)
  
- DEFPARAM(PARAM_MAX_ALIASED_VOPS,
-          "max-aliased-vops",
- 	 "The maximum number of virtual operators that a function is allowed to have before triggering memory partitioning heuristics",
- 	 100, 0, 0)
- 
- DEFPARAM(PARAM_AVG_ALIASED_VOPS,
-     	 "avg-aliased-vops",
- 	 "The average number of virtual operators that memory statements are allowed to have before triggering memory partitioning heuristics",
- 	 1, 0, 0)
- 
  DEFPARAM(PARAM_MAX_SCHED_REGION_BLOCKS,
  	 "max-sched-region-blocks",
  	 "The maximum number of blocks in a region to be considered for interblock scheduling",
--- 537,542 ----
Index: alias-improvements/gcc/params.h
===================================================================
*** alias-improvements.orig/gcc/params.h	2009-01-13 17:04:57.000000000 +0100
--- alias-improvements/gcc/params.h	2009-01-19 13:30:08.000000000 +0100
*************** typedef enum compiler_param
*** 139,148 ****
    PARAM_VALUE (PARAM_SMS_DFA_HISTORY)
  #define SMS_LOOP_AVERAGE_COUNT_THRESHOLD \
    PARAM_VALUE (PARAM_SMS_LOOP_AVERAGE_COUNT_THRESHOLD)
- #define MAX_ALIASED_VOPS \
-   PARAM_VALUE (PARAM_MAX_ALIASED_VOPS)
- #define AVG_ALIASED_VOPS \
-   PARAM_VALUE (PARAM_AVG_ALIASED_VOPS)
  #define INTEGER_SHARE_LIMIT \
    PARAM_VALUE (PARAM_INTEGER_SHARE_LIMIT)
  #define MAX_LAST_VALUE_RTL \
--- 139,144 ----
Index: alias-improvements/gcc/timevar.def
===================================================================
*** alias-improvements.orig/gcc/timevar.def	2008-09-18 17:08:00.000000000 +0200
--- alias-improvements/gcc/timevar.def	2009-01-19 13:29:04.000000000 +0100
*************** DEFTIMEVAR (TV_TREE_COPY_PROP        , "
*** 87,97 ****
  DEFTIMEVAR (TV_TREE_STORE_COPY_PROP  , "tree store copy prop")
  DEFTIMEVAR (TV_FIND_REFERENCED_VARS  , "tree find ref. vars")
  DEFTIMEVAR (TV_TREE_PTA		     , "tree PTA")
- DEFTIMEVAR (TV_TREE_MAY_ALIAS        , "tree alias analysis")
- DEFTIMEVAR (TV_CALL_CLOBBER          , "tree call clobbering")
- DEFTIMEVAR (TV_FLOW_SENSITIVE        , "tree flow sensitive alias")
- DEFTIMEVAR (TV_FLOW_INSENSITIVE      , "tree flow insensitive alias")
- DEFTIMEVAR (TV_MEMORY_PARTITIONING   , "tree memory partitioning")
  DEFTIMEVAR (TV_TREE_INSERT_PHI_NODES , "tree PHI insertion")
  DEFTIMEVAR (TV_TREE_SSA_REWRITE_BLOCKS, "tree SSA rewrite")
  DEFTIMEVAR (TV_TREE_SSA_OTHER	     , "tree SSA other")
--- 87,92 ----



More information about the Gcc-patches mailing list