This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Is this code really unused?
- To: gcc at gcc dot gnu dot org
- Subject: Re: Is this code really unused?
- From: Sam TH <sam at uchicago dot edu>
- Date: Sat, 19 May 2001 16:00:04 -0500
- References: <20010518122439.A3627@uchicago.edu>
On Fri, May 18, 2001 at 12:24:39PM -0500, Sam TH wrote:
> It would appear that the vast majority of the code in dependence.c is
> entirely unused. As evidence, the attached patch bootstraps:
>
> Is there some reason this code is just sitting there?
Aha, found the reason. The following patch, which used these
functions, was never reviewed (at least not on gcc-patches):
http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00117.html
The precise unused functions, which I just checked with Cscope.
void init_dependence_analysis PARAMS ((tree));
static int have_induction_variable PARAMS ((tree, const char*));
static void link_loops PARAMS ((void));
static void get_node_dependence PARAMS ((void));
static void check_node_dependence PARAMS ((def_use*));
static int get_coefficients PARAMS ((def_use*, subscript[]));
static int get_one_coefficient PARAMS ((tree, subscript*, def_use*, enum tree_code*));
static void normalize_coefficients PARAMS ((subscript[], loop*, int));
static void classify_dependence PARAMS ((subscript[], subscript[],
enum complexity_type[], int*, int));
static void ziv_test PARAMS ((subscript[], subscript[],
enum direction_type[][MAX_SUBSCRIPTS],
int[][MAX_SUBSCRIPTS], loop*, int));
static void siv_test PARAMS ((subscript[], subscript[],
enum direction_type[][MAX_SUBSCRIPTS],
int[][MAX_SUBSCRIPTS], loop*, int));
static int check_subscript_induction PARAMS ((subscript*, subscript*, loop*));
static void gcd_test PARAMS ((subscript[], subscript[], enum
direction_type[][MAX_SUBSCRIPTS],
int[][MAX_SUBSCRIPTS], loop*, int));
static int find_gcd PARAMS ((int, int));
static void merge_dependencies PARAMS ((enum direction_type[][MAX_SUBSCRIPTS],
int[][MAX_SUBSCRIPTS], int, int));
static void dump_array_ref PARAMS ((tree));
#if 0
static void dump_one_node PARAMS ((def_use*, varray_type*));
static void dump_node_dependence PARAMS ((void));
#endif
int search_dependence PARAMS ((tree));
void remember_dest_for_dependence PARAMS ((tree));
int have_dependence_p PARAMS ((rtx, rtx, enum direction_type[], int[]));
void end_dependence_analysis PARAMS ((void));
sam th --- sam@uchicago.edu --- http://www.abisource.com/~sam/
OpenPGP Key: CABD33FC --- http://samth.dyndns.org/key
DeCSS: http://samth.dynds.org/decss
PGP signature