From 099f0f3f6e956a49ecb663000268f3fbcf449dc1 Mon Sep 17 00:00:00 2001 From: Michael Hayes Date: Fri, 12 Jan 2001 04:09:43 +0000 Subject: loop.h (total_biv_increment): Constify iv_class pointer. * loop.h (total_biv_increment): Constify iv_class pointer. (struct induction): Replace `mem_mode' with `mem' rtx. * unroll.c (total_biv_increment): Constify iv_class pointer. * loop.c (loop_giv_reduce_benefit): Derive mem mode from mem rtx. (find_mem_givs, combine_givs_p): Likewise. (debug_ivs, debug_iv_class, loop_ivs_dump, loop_iv_class_dump): New. From-SVN: r38933 --- gcc/loop.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gcc/loop.h') diff --git a/gcc/loop.h b/gcc/loop.h index f01bd67..1b4f24f 100644 --- a/gcc/loop.h +++ b/gcc/loop.h @@ -87,7 +87,7 @@ struct induction /* For a biv, this is the place where add_val was found. */ enum machine_mode mode; /* The mode of this biv or giv */ - enum machine_mode mem_mode; /* For DEST_ADDR, mode of the memory object. */ + rtx mem; /* For DEST_ADDR, the memory object. */ rtx mult_val; /* Multiplicative factor for src_reg. */ rtx add_val; /* Additive constant for that product. */ int benefit; /* Gain from eliminating this insn. */ @@ -398,7 +398,7 @@ rtx express_from PARAMS ((struct induction *, struct induction *)); rtx extend_value_for_giv PARAMS ((struct induction *, rtx)); void unroll_loop PARAMS ((struct loop *, int, int)); -rtx biv_total_increment PARAMS ((struct iv_class *)); +rtx biv_total_increment PARAMS ((const struct iv_class *)); unsigned HOST_WIDE_INT loop_iterations PARAMS ((struct loop *)); int precondition_loop_p PARAMS ((const struct loop *, rtx *, rtx *, rtx *, @@ -416,3 +416,4 @@ rtx loop_insn_hoist PARAMS((const struct loop *, rtx)); /* Forward declarations for non-static functions declared in doloop.c. */ int doloop_optimize PARAMS ((const struct loop *)); +rtx doloop_condition_get PARAMS ((rtx)); -- cgit v1.1